Mercurial > geeqie
comparison 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 |
comparison
equal
deleted
inserted
replaced
674:6b18c47a724c | 675:cca86176bf81 |
---|---|
2610 | 2610 |
2611 print_pref_store(pw); | 2611 print_pref_store(pw); |
2612 | 2612 |
2613 gtk_widget_hide(pw->dialog->dialog); | 2613 gtk_widget_hide(pw->dialog->dialog); |
2614 | 2614 |
2615 { | 2615 pw->job_dialog = file_util_gen_dlg(_("Print"), GQ_WMCLASS, "print_job_dialog", |
2616 gchar *title = g_strdup_printf("%s - %s", _("Print"), GQ_APPNAME); | |
2617 pw->job_dialog = file_util_gen_dlg(title, GQ_WMCLASS, "print_job_dialog", | |
2618 (GtkWidget *)gtk_window_get_transient_for(GTK_WINDOW(pw->dialog->dialog)), FALSE, | 2616 (GtkWidget *)gtk_window_get_transient_for(GTK_WINDOW(pw->dialog->dialog)), FALSE, |
2619 print_job_cancel_cb, pw); | 2617 print_job_cancel_cb, pw); |
2620 g_free(title); | |
2621 } | |
2622 | 2618 |
2623 msg = g_strdup_printf(_("Printing %d pages to %s."), print_layout_page_count(pw), print_output_name(pw->output)); | 2619 msg = g_strdup_printf(_("Printing %d pages to %s."), print_layout_page_count(pw), print_output_name(pw->output)); |
2624 generic_dialog_add_message(pw->job_dialog, NULL, msg, NULL); | 2620 generic_dialog_add_message(pw->job_dialog, NULL, msg, NULL); |
2625 g_free(msg); | 2621 g_free(msg); |
2626 | 2622 |
3370 pw->text_points = 10; | 3366 pw->text_points = 10; |
3371 pw->text_r = pw->text_g = pw->text_b = 0; | 3367 pw->text_r = pw->text_g = pw->text_b = 0; |
3372 | 3368 |
3373 pw->save_settings = print_pref_int(PRINT_PREF_SAVE, TRUE); | 3369 pw->save_settings = print_pref_int(PRINT_PREF_SAVE, TRUE); |
3374 | 3370 |
3375 { | 3371 pw->dialog = file_util_gen_dlg(_("Print"), GQ_WMCLASS, "print_dialog", |
3376 gchar *title = g_strdup_printf("%s - %s", _("Print"), GQ_APPNAME); | |
3377 pw->dialog = file_util_gen_dlg(title, GQ_WMCLASS, "print_dialog", | |
3378 parent, FALSE, | 3372 parent, FALSE, |
3379 print_window_cancel_cb, pw); | 3373 print_window_cancel_cb, pw); |
3380 g_free(title); | |
3381 } | |
3382 | 3374 |
3383 geometry.min_width = 32; | 3375 geometry.min_width = 32; |
3384 geometry.min_height = 32; | 3376 geometry.min_height = 32; |
3385 geometry.base_width = PRINT_DLG_WIDTH; | 3377 geometry.base_width = PRINT_DLG_WIDTH; |
3386 geometry.base_height = PRINT_DLG_HEIGHT; | 3378 geometry.base_height = PRINT_DLG_HEIGHT; |