Mercurial > geeqie.yaz
comparison src/print.c @ 288:d1f74154463e
Replace occurences of Geeqie / geeqie by constants defined in main.h.
author | zas_ |
---|---|
date | Wed, 09 Apr 2008 13:53:01 +0000 |
parents | 9995c5fb202a |
children | 4b2d7f9af171 |
comparison
equal
deleted
inserted
replaced
287:fd5c62403498 | 288:d1f74154463e |
---|---|
1095 | 1095 |
1096 pe = pipe_handler_new(); | 1096 pe = pipe_handler_new(); |
1097 | 1097 |
1098 /* comments, etc. */ | 1098 /* comments, etc. */ |
1099 fprintf(f, "%%!PS-Adobe-3.0\n"); | 1099 fprintf(f, "%%!PS-Adobe-3.0\n"); |
1100 fprintf(f, "%%%%Creator: Geeqie Version %s\n", VERSION); | 1100 fprintf(f, "%%%%Creator: %s Version %s\n", GQ_APPNAME, VERSION); |
1101 fprintf(f, "%%%%CreationDate: \n"); | 1101 fprintf(f, "%%%%CreationDate: \n"); |
1102 fprintf(f, "%%%%LanguageLevel 2\n"); | 1102 fprintf(f, "%%%%LanguageLevel 2\n"); |
1103 fprintf(f, "%%%%DocumentMedia: \n"); | 1103 fprintf(f, "%%%%DocumentMedia: \n"); |
1104 fprintf(f, "%%%%Orientation: %s\n", | 1104 fprintf(f, "%%%%Orientation: %s\n", |
1105 (pw->paper_orientation == PAPER_ORIENTATION_PORTRAIT) ? "Portrait" : "Landscape"); | 1105 (pw->paper_orientation == PAPER_ORIENTATION_PORTRAIT) ? "Portrait" : "Landscape"); |
2609 | 2609 |
2610 print_pref_store(pw); | 2610 print_pref_store(pw); |
2611 | 2611 |
2612 gtk_widget_hide(pw->dialog->dialog); | 2612 gtk_widget_hide(pw->dialog->dialog); |
2613 | 2613 |
2614 pw->job_dialog = file_util_gen_dlg(_("Print - Geeqie"), GQ_WMCLASS, "print_job_dialog", | 2614 { |
2615 gchar *title = g_strdup_printf("%s - %s", _("Print"), GQ_APPNAME); | |
2616 pw->job_dialog = file_util_gen_dlg(title, GQ_WMCLASS, "print_job_dialog", | |
2615 (GtkWidget *)gtk_window_get_transient_for(GTK_WINDOW(pw->dialog->dialog)), FALSE, | 2617 (GtkWidget *)gtk_window_get_transient_for(GTK_WINDOW(pw->dialog->dialog)), FALSE, |
2616 print_job_cancel_cb, pw); | 2618 print_job_cancel_cb, pw); |
2619 g_free(title); | |
2620 } | |
2617 | 2621 |
2618 msg = g_strdup_printf(_("Printing %d pages to %s."), print_layout_page_count(pw), print_output_name(pw->output)); | 2622 msg = g_strdup_printf(_("Printing %d pages to %s."), print_layout_page_count(pw), print_output_name(pw->output)); |
2619 generic_dialog_add_message(pw->job_dialog, NULL, msg, NULL); | 2623 generic_dialog_add_message(pw->job_dialog, NULL, msg, NULL); |
2620 g_free(msg); | 2624 g_free(msg); |
2621 | 2625 |
3365 pw->text_points = 10; | 3369 pw->text_points = 10; |
3366 pw->text_r = pw->text_g = pw->text_b = 0; | 3370 pw->text_r = pw->text_g = pw->text_b = 0; |
3367 | 3371 |
3368 pw->save_settings = print_pref_int(PRINT_PREF_SAVE, TRUE); | 3372 pw->save_settings = print_pref_int(PRINT_PREF_SAVE, TRUE); |
3369 | 3373 |
3370 pw->dialog = file_util_gen_dlg(_("Print - Geeqie"), GQ_WMCLASS, "print_dialog", | 3374 { |
3375 gchar *title = g_strdup_printf("%s - %s", _("Print"), GQ_APPNAME); | |
3376 pw->dialog = file_util_gen_dlg(title, GQ_WMCLASS, "print_dialog", | |
3371 parent, FALSE, | 3377 parent, FALSE, |
3372 print_window_cancel_cb, pw); | 3378 print_window_cancel_cb, pw); |
3379 g_free(title); | |
3380 } | |
3373 | 3381 |
3374 geometry.min_width = 32; | 3382 geometry.min_width = 32; |
3375 geometry.min_height = 32; | 3383 geometry.min_height = 32; |
3376 geometry.base_width = PRINT_DLG_WIDTH; | 3384 geometry.base_width = PRINT_DLG_WIDTH; |
3377 geometry.base_height = PRINT_DLG_HEIGHT; | 3385 geometry.base_height = PRINT_DLG_HEIGHT; |