diff 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
line wrap: on
line diff
--- a/src/main.c	Thu Apr 03 22:39:50 2008 +0000
+++ b/src/main.c	Thu Apr 03 23:29:14 2008 +0000
@@ -235,7 +235,7 @@
 		return;
 		}
 
-	help_window = help_window_new(_("Help - Geeqie"), "Geeqie", "help",
+	help_window = help_window_new(_("Help - Geeqie"), GQ_WMCLASS, "help",
                                       GQVIEW_HELPDIR "/README", key);
 	g_signal_connect(G_OBJECT(help_window), "destroy",
 			 G_CALLBACK(help_window_destroy_cb), NULL);
@@ -1233,7 +1233,7 @@
 		}
 
 	exit_dialog = generic_dialog_new(_("Geeqie - exit"),
-				"Geeqie", "exit", parent, FALSE,
+				GQ_WMCLASS, "exit", parent, FALSE,
 				exit_confirm_cancel_cb, NULL);
 	generic_dialog_add_message(exit_dialog, GTK_STOCK_DIALOG_QUESTION,
 				   _("Quit Geeqie"), _("Collections have been modified. Quit anyway?"));