Replace occurences of Geeqie / geeqie by constants defined in main.h.
[geeqie.git] / src / print.c
index be7015c..fde8576 100644 (file)
@@ -1097,7 +1097,7 @@ static gint print_job_ps_init(PrintWindow *pw)
 
        /* comments, etc. */
        fprintf(f, "%%!PS-Adobe-3.0\n");
-       fprintf(f, "%%%%Creator: Geeqie Version %s\n", VERSION);
+       fprintf(f, "%%%%Creator: %s Version %s\n", GQ_APPNAME, VERSION);
        fprintf(f, "%%%%CreationDate: \n");
        fprintf(f, "%%%%LanguageLevel 2\n");
        fprintf(f, "%%%%DocumentMedia: \n");
@@ -2611,9 +2611,13 @@ static gint print_job_start(PrintWindow *pw, RenderFormat format, PrintOutput ou
 
        gtk_widget_hide(pw->dialog->dialog);
 
-       pw->job_dialog = file_util_gen_dlg(_("Print - Geeqie"), GQ_WMCLASS, "print_job_dialog",
+       {
+       gchar *title = g_strdup_printf("%s - %s", _("Print"), GQ_APPNAME);
+       pw->job_dialog = file_util_gen_dlg(title, 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);
@@ -3367,9 +3371,13 @@ void print_window_new(FileData *fd, GList *selection, GList *list, GtkWidget *pa
 
        pw->save_settings = print_pref_int(PRINT_PREF_SAVE, TRUE);
 
-       pw->dialog = file_util_gen_dlg(_("Print - Geeqie"), GQ_WMCLASS, "print_dialog",
+       {
+       gchar *title = g_strdup_printf("%s - %s", _("Print"), GQ_APPNAME);
+       pw->dialog = file_util_gen_dlg(title, GQ_WMCLASS, "print_dialog",
                                       parent, FALSE,
                                       print_window_cancel_cb, pw);
+       g_free(title);
+       }
 
        geometry.min_width = 32;
        geometry.min_height = 32;