Mercurial > geeqie
comparison src/main.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 | 41fc4bfc8b25 |
children | 04abf5b160eb |
comparison
equal
deleted
inserted
replaced
253:b932b6928e20 | 254:9faf34f047b1 |
---|---|
233 gtk_window_present(GTK_WINDOW(help_window)); | 233 gtk_window_present(GTK_WINDOW(help_window)); |
234 if (key) help_window_set_key(help_window, key); | 234 if (key) help_window_set_key(help_window, key); |
235 return; | 235 return; |
236 } | 236 } |
237 | 237 |
238 help_window = help_window_new(_("Help - Geeqie"), "Geeqie", "help", | 238 help_window = help_window_new(_("Help - Geeqie"), GQ_WMCLASS, "help", |
239 GQVIEW_HELPDIR "/README", key); | 239 GQVIEW_HELPDIR "/README", key); |
240 g_signal_connect(G_OBJECT(help_window), "destroy", | 240 g_signal_connect(G_OBJECT(help_window), "destroy", |
241 G_CALLBACK(help_window_destroy_cb), NULL); | 241 G_CALLBACK(help_window_destroy_cb), NULL); |
242 } | 242 } |
243 | 243 |
1231 { | 1231 { |
1232 parent = lw->window; | 1232 parent = lw->window; |
1233 } | 1233 } |
1234 | 1234 |
1235 exit_dialog = generic_dialog_new(_("Geeqie - exit"), | 1235 exit_dialog = generic_dialog_new(_("Geeqie - exit"), |
1236 "Geeqie", "exit", parent, FALSE, | 1236 GQ_WMCLASS, "exit", parent, FALSE, |
1237 exit_confirm_cancel_cb, NULL); | 1237 exit_confirm_cancel_cb, NULL); |
1238 generic_dialog_add_message(exit_dialog, GTK_STOCK_DIALOG_QUESTION, | 1238 generic_dialog_add_message(exit_dialog, GTK_STOCK_DIALOG_QUESTION, |
1239 _("Quit Geeqie"), _("Collections have been modified. Quit anyway?")); | 1239 _("Quit Geeqie"), _("Collections have been modified. Quit anyway?")); |
1240 generic_dialog_add_button(exit_dialog, GTK_STOCK_QUIT, NULL, exit_confirm_exit_cb, TRUE); | 1240 generic_dialog_add_button(exit_dialog, GTK_STOCK_QUIT, NULL, exit_confirm_exit_cb, TRUE); |
1241 | 1241 |