Mercurial > geeqie
comparison src/window.c @ 1174:0bea79d87065
Drop useless wmclass stuff. Gtk will take care of it and as said in the documentation using gtk_window_set_wmclass() is sort of pointless.
author | zas_ |
---|---|
date | Sun, 23 Nov 2008 16:10:29 +0000 |
parents | 5fe3b8b3a612 |
children | 2518a4a73d89 |
comparison
equal
deleted
inserted
replaced
1173:52ce0263cb7c | 1174:0bea79d87065 |
---|---|
38 gtk_window_set_title(GTK_WINDOW(window), title); | 38 gtk_window_set_title(GTK_WINDOW(window), title); |
39 g_free(title); | 39 g_free(title); |
40 | 40 |
41 window_set_icon(window, icon, icon_file); | 41 window_set_icon(window, icon, icon_file); |
42 gtk_window_set_role(GTK_WINDOW(window), name); | 42 gtk_window_set_role(GTK_WINDOW(window), name); |
43 gtk_window_set_wmclass(GTK_WINDOW(window), name, GQ_WMCLASS); | |
44 | 43 |
45 return window; | 44 return window; |
46 } | 45 } |
47 | 46 |
48 void window_set_icon(GtkWidget *window, const gchar *icon, const gchar *file) | 47 void window_set_icon(GtkWidget *window, const gchar *icon, const gchar *file) |
247 if (key) help_window_set_key(help_window, key); | 246 if (key) help_window_set_key(help_window, key); |
248 return; | 247 return; |
249 } | 248 } |
250 | 249 |
251 path = g_build_filename(options->documentation.helpdir, "README", NULL); | 250 path = g_build_filename(options->documentation.helpdir, "README", NULL); |
252 help_window = help_window_new(_("Help"), GQ_WMCLASS, "help", path, key); | 251 help_window = help_window_new(_("Help"), "help", path, key); |
253 g_free(path); | 252 g_free(path); |
254 | 253 |
255 g_signal_connect(G_OBJECT(help_window), "destroy", | 254 g_signal_connect(G_OBJECT(help_window), "destroy", |
256 G_CALLBACK(help_window_destroy_cb), NULL); | 255 G_CALLBACK(help_window_destroy_cb), NULL); |
257 } | 256 } |