diff src/pan-view.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 22ed43d4c849
children 9995c5fb202a
line wrap: on
line diff
--- a/src/pan-view.c	Thu Apr 03 22:39:50 2008 +0000
+++ b/src/pan-view.c	Thu Apr 03 23:29:14 2008 +0000
@@ -2362,7 +2362,7 @@
 
 	gtk_window_set_resizable(GTK_WINDOW(pw->window), TRUE);
 	gtk_window_set_title (GTK_WINDOW(pw->window), _("Pan View - Geeqie"));
-        gtk_window_set_wmclass(GTK_WINDOW(pw->window), "view", "Geeqie");
+        gtk_window_set_wmclass(GTK_WINDOW(pw->window), "view", GQ_WMCLASS);
         gtk_container_set_border_width(GTK_CONTAINER(pw->window), 0);
 
 	window_set_icon(pw->window, NULL, NULL);
@@ -2576,7 +2576,7 @@
 	if (!pref_list_int_get(PAN_PREF_GROUP, PAN_PREF_HIDE_WARNING, &hide_dlg)) hide_dlg = FALSE;
 	if (hide_dlg) return FALSE;
 
-	gd = generic_dialog_new(_("Pan View Performance"), "Geeqie", "pan_view_warning", NULL, FALSE,
+	gd = generic_dialog_new(_("Pan View Performance"), GQ_WMCLASS, "pan_view_warning", NULL, FALSE,
 				NULL, NULL);
 	gd->data = g_strdup(path);
 	generic_dialog_add_button(gd, GTK_STOCK_OK, NULL,