diff src/layout.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 98268a6b8182
line wrap: on
line diff
--- a/src/layout.c	Thu Apr 03 22:39:50 2008 +0000
+++ b/src/layout.c	Thu Apr 03 23:29:14 2008 +0000
@@ -1351,7 +1351,7 @@
 
 	        gtk_window_set_resizable(GTK_WINDOW(lw->tools), TRUE);
         	gtk_window_set_title(GTK_WINDOW(lw->tools), _("Geeqie Tools"));
-        	gtk_window_set_wmclass(GTK_WINDOW(lw->tools), "tools", "Geeqie");
+        	gtk_window_set_wmclass(GTK_WINDOW(lw->tools), "tools", GQ_WMCLASS);
         	gtk_container_set_border_width(GTK_CONTAINER(lw->tools), 0);
 
 		window_set_icon(lw->tools, PIXBUF_INLINE_ICON_TOOLS, NULL);
@@ -1936,7 +1936,7 @@
 	gtk_window_set_resizable(GTK_WINDOW(lw->window), TRUE);
 
 	gtk_window_set_title(GTK_WINDOW(lw->window), "Geeqie");
-	gtk_window_set_wmclass(GTK_WINDOW(lw->window), "Geeqie", "Geeqie");
+	gtk_window_set_wmclass(GTK_WINDOW(lw->window), GQ_WMCLASS, GQ_WMCLASS);
 	gtk_container_set_border_width(GTK_CONTAINER(lw->window), 0);
 
 	window_set_icon(lw->window, NULL, NULL);