diff src/print.c @ 675:cca86176bf81

Fix redundant application name in window titles. It simplifies code.
author zas_
date Fri, 16 May 2008 14:59:45 +0000
parents fbebf5cf4a55
children a7289f9e8d29
line wrap: on
line diff
--- a/src/print.c	Fri May 16 14:38:05 2008 +0000
+++ b/src/print.c	Fri May 16 14:59:45 2008 +0000
@@ -2612,13 +2612,9 @@
 
 	gtk_widget_hide(pw->dialog->dialog);
 
-	{
-	gchar *title = g_strdup_printf("%s - %s", _("Print"), GQ_APPNAME);
-	pw->job_dialog = file_util_gen_dlg(title, GQ_WMCLASS, "print_job_dialog",
+	pw->job_dialog = file_util_gen_dlg(_("Print"), GQ_WMCLASS, "print_job_dialog",
 					   (GtkWidget *)gtk_window_get_transient_for(GTK_WINDOW(pw->dialog->dialog)), FALSE,
 					   print_job_cancel_cb, pw);
-	g_free(title);
-	}
 
 	msg = g_strdup_printf(_("Printing %d pages to %s."), print_layout_page_count(pw), print_output_name(pw->output));
 	generic_dialog_add_message(pw->job_dialog, NULL, msg, NULL);
@@ -3372,13 +3368,9 @@
 
 	pw->save_settings = print_pref_int(PRINT_PREF_SAVE, TRUE);
 
-	{
-	gchar *title = g_strdup_printf("%s - %s", _("Print"), GQ_APPNAME);
-	pw->dialog = file_util_gen_dlg(title, GQ_WMCLASS, "print_dialog",
+	pw->dialog = file_util_gen_dlg(_("Print"), GQ_WMCLASS, "print_dialog",
 				       parent, FALSE,
 				       print_window_cancel_cb, pw);
-	g_free(title);
-	}
 
 	geometry.min_width = 32;
 	geometry.min_height = 32;