Kaydet (Commit) 70bdbb49 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fix crash on Windows when printing an untitled file.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2193 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 00359433
......@@ -711,10 +711,11 @@ static void draw_page(GtkPrintOperation *operation, GtkPrintContext *context,
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment