summaryrefslogtreecommitdiff
path: root/src/wm-tester/main.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2001-08-29 03:37:03 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-08-29 03:37:03 +0000
commitdb0a7e29789b04fde38b9ca3b4aa855a6d9526f3 (patch)
treedc61c25feb50d9e56e36b0d51dd12a4b6c6a891c /src/wm-tester/main.c
parent4d2f018ddb7e643cb56b22ff63b69466df8d1ab6 (diff)
downloadmetacity-db0a7e29789b04fde38b9ca3b4aa855a6d9526f3.tar.gz
metacity-db0a7e29789b04fde38b9ca3b4aa855a6d9526f3.tar.bz2
Unbreak tab popup a bit.
2001-08-28 Havoc Pennington <hp@pobox.com> Unbreak tab popup a bit. * src/stack.c (meta_stack_get_tab_list): add workspace argument (meta_stack_get_tab_next): add workspace argument * src/window.c: implement recording of the last user-initiated window position, so we can magically handle moving panels around really nicely. * src/wm-tester/main.c (set_up_icon_windows): fix to use new GTK API
Diffstat (limited to 'src/wm-tester/main.c')
-rw-r--r--src/wm-tester/main.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/wm-tester/main.c b/src/wm-tester/main.c
index f58742d..bcf1f10 100644
--- a/src/wm-tester/main.c
+++ b/src/wm-tester/main.c
@@ -44,7 +44,7 @@ main (int argc, char **argv)
gboolean do_evil;
gboolean do_icon_windows;
- gtk_init (&argc, &argv);
+ gtk_init (&argc, &argv);
do_evil = FALSE;
do_icon_windows = FALSE;
@@ -185,8 +185,6 @@ set_up_icon_windows (void)
c = gtk_button_new_with_label ("Icon window");
gtk_container_add (GTK_CONTAINER (w), c);
- gtk_widget_realize (w);
-
icons = NULL;
pix = gtk_widget_render_icon (w,
@@ -213,9 +211,8 @@ set_up_icon_windows (void)
NULL);
icons = g_list_append (icons, pix);
}
-
- if (!gdk_window_set_icon_list (w->window, icons))
- g_warning ("_NET_WM_ICON not supported?");
+
+ gtk_window_set_icon_list (GTK_WINDOW (w), icons);
g_list_foreach (icons, (GFunc) g_object_unref, NULL);
g_list_free (icons);