Mercurial > geeqie.yaz
comparison src/collect-dlg.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 | f6e307c7bad6 |
children | 9995c5fb202a |
comparison
equal
deleted
inserted
replaced
253:b932b6928e20 | 254:9faf34f047b1 |
---|---|
63 | 63 |
64 if (!overwrite && isfile(fd->dest_path)) | 64 if (!overwrite && isfile(fd->dest_path)) |
65 { | 65 { |
66 GenericDialog *gd; | 66 GenericDialog *gd; |
67 | 67 |
68 gd = file_util_gen_dlg(_("Overwrite File"), "Geeqie", "dlg_confirm", | 68 gd = file_util_gen_dlg(_("Overwrite File"), GQ_WMCLASS, "dlg_confirm", |
69 GENERIC_DIALOG(fd)->dialog, TRUE, | 69 GENERIC_DIALOG(fd)->dialog, TRUE, |
70 collection_confirm_cancel_cb, fd); | 70 collection_confirm_cancel_cb, fd); |
71 | 71 |
72 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, | 72 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, |
73 _("Overwrite existing file?"), fd->dest_path); | 73 _("Overwrite existing file?"), fd->dest_path); |
190 if (cd) collection_ref(cd); | 190 if (cd) collection_ref(cd); |
191 | 191 |
192 cw = collection_window_find(cd); | 192 cw = collection_window_find(cd); |
193 if (cw) parent = cw->window; | 193 if (cw) parent = cw->window; |
194 | 194 |
195 fd = file_util_file_dlg(title, "Geeqie", "dlg_collection", parent, | 195 fd = file_util_file_dlg(title, GQ_WMCLASS, "dlg_collection", parent, |
196 collection_save_or_load_dialog_close_cb, cd); | 196 collection_save_or_load_dialog_close_cb, cd); |
197 | 197 |
198 generic_dialog_add_message(GENERIC_DIALOG(fd), NULL, title, NULL); | 198 generic_dialog_add_message(GENERIC_DIALOG(fd), NULL, title, NULL); |
199 file_dialog_add_button(fd, stock_id, btntext, btnfunc, TRUE); | 199 file_dialog_add_button(fd, stock_id, btntext, btnfunc, TRUE); |
200 | 200 |