Revision: 2193 http://geany.svn.sourceforge.net/geany/?rev=2193&view=rev Author: eht16 Date: 2008-01-27 09:44:18 -0800 (Sun, 27 Jan 2008)
Log Message: ----------- Fix crash on Windows when printing an untitled file.
Modified Paths: -------------- trunk/src/printing.c
Modified: trunk/src/printing.c =================================================================== --- trunk/src/printing.c 2008-01-27 14:54:00 UTC (rev 2192) +++ trunk/src/printing.c 2008-01-27 17:44:18 UTC (rev 2193) @@ -711,10 +711,11 @@
static void status_changed(GtkPrintOperation *op, gpointer data) { + gchar *filename = (data != NULL) ? data : GEANY_STRING_UNTITLED; if (gtk_print_operation_get_status(op) == GTK_PRINT_STATUS_FINISHED_ABORTED) - msgwin_status_add(_("Printing of file %s was cancelled."), (gchar *) data); + msgwin_status_add(_("Printing of file %s was cancelled."), filename); else if (gtk_print_operation_get_status(op) == GTK_PRINT_STATUS_FINISHED) - msgwin_status_add(_("File %s printed."), (gchar *) data); + msgwin_status_add(_("File %s printed."), filename); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.