comparison src/print.c @ 254:9faf34f047b1

Make the wmclass value unique among the code by defining it in main header file as GQ_WMCLASS. Before this patch, it was set using PACKAGE (="geeqie"), or by the hardcoded string "Geeqie". Now all Geeqie windows have the same value for wmclass.
author zas_
date Thu, 03 Apr 2008 23:29:14 +0000
parents 343e560f8e15
children 65187a2309d3
comparison
equal deleted inserted replaced
253:b932b6928e20 254:9faf34f047b1
1996 GtkWidget *label; 1996 GtkWidget *label;
1997 gchar *buf; 1997 gchar *buf;
1998 1998
1999 if (GTK_WIDGET_VISIBLE(pw->dialog->dialog)) parent = pw->dialog->dialog; 1999 if (GTK_WIDGET_VISIBLE(pw->dialog->dialog)) parent = pw->dialog->dialog;
2000 2000
2001 gd = generic_dialog_new(_("Printing error"), "Geeqie", "print_warning", 2001 gd = generic_dialog_new(_("Printing error"), GQ_WMCLASS, "print_warning",
2002 parent, TRUE, NULL, NULL); 2002 parent, TRUE, NULL, NULL);
2003 generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, NULL, TRUE); 2003 generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, NULL, TRUE);
2004 2004
2005 buf = g_strdup_printf(_("An error occured printing to %s."), print_output_name(pw->output)); 2005 buf = g_strdup_printf(_("An error occured printing to %s."), print_output_name(pw->output));
2006 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_ERROR, _("Printing error"), buf); 2006 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_ERROR, _("Printing error"), buf);
2597 2597
2598 print_pref_store(pw); 2598 print_pref_store(pw);
2599 2599
2600 gtk_widget_hide(pw->dialog->dialog); 2600 gtk_widget_hide(pw->dialog->dialog);
2601 2601
2602 pw->job_dialog = file_util_gen_dlg(_("Print - Geeqie"), "Geeqie", "print_job_dialog", 2602 pw->job_dialog = file_util_gen_dlg(_("Print - Geeqie"), GQ_WMCLASS, "print_job_dialog",
2603 (GtkWidget *)gtk_window_get_transient_for(GTK_WINDOW(pw->dialog->dialog)), FALSE, 2603 (GtkWidget *)gtk_window_get_transient_for(GTK_WINDOW(pw->dialog->dialog)), FALSE,
2604 print_job_cancel_cb, pw); 2604 print_job_cancel_cb, pw);
2605 2605
2606 msg = g_strdup_printf(_("Printing %d pages to %s."), print_layout_page_count(pw), print_output_name(pw->output)); 2606 msg = g_strdup_printf(_("Printing %d pages to %s."), print_layout_page_count(pw), print_output_name(pw->output));
2607 generic_dialog_add_message(pw->job_dialog, NULL, msg, NULL); 2607 generic_dialog_add_message(pw->job_dialog, NULL, msg, NULL);
3342 pw->text_points = 10; 3342 pw->text_points = 10;
3343 pw->text_r = pw->text_g = pw->text_b = 0; 3343 pw->text_r = pw->text_g = pw->text_b = 0;
3344 3344
3345 pw->save_settings = print_pref_int(PRINT_PREF_SAVE, TRUE); 3345 pw->save_settings = print_pref_int(PRINT_PREF_SAVE, TRUE);
3346 3346
3347 pw->dialog = file_util_gen_dlg(_("Print - Geeqie"), "Geeqie", "print_dialog", 3347 pw->dialog = file_util_gen_dlg(_("Print - Geeqie"), GQ_WMCLASS, "print_dialog",
3348 parent, FALSE, 3348 parent, FALSE,
3349 print_window_cancel_cb, pw); 3349 print_window_cancel_cb, pw);
3350 3350
3351 geometry.min_width = 32; 3351 geometry.min_width = 32;
3352 geometry.min_height = 32; 3352 geometry.min_height = 32;