summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-05-11 05:47:04 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-05-11 05:47:04 +0000
commit41e99288b58b74ad2bd8e49b1b0020b1ff842173 (patch)
treeea37db12fdca9d2bef19d36654b5d2df15d82fb8 /src/tools
parenta3460b8ac806b775c5410aabf59964479d43322c (diff)
downloadmetacity-41e99288b58b74ad2bd8e49b1b0020b1ff842173.tar.gz
metacity-41e99288b58b74ad2bd8e49b1b0020b1ff842173.tar.bz2
include locale.h, fix from Hidetoshi Tajima
2002-05-11 Havoc Pennington <hp@pobox.com> * src/main.c: include locale.h, fix from Hidetoshi Tajima * src/window.c (meta_window_new): disable show desktop mode when a new window is managed.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/metacity-window-demo.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/tools/metacity-window-demo.c b/src/tools/metacity-window-demo.c
index 825f6b7..933840e 100644
--- a/src/tools/metacity-window-demo.c
+++ b/src/tools/metacity-window-demo.c
@@ -332,6 +332,28 @@ override_redirect_cb (gpointer callback_data,
gtk_widget_show_all (window);
}
+static void
+changing_icon_cb (gpointer callback_data,
+ guint callback_action,
+ GtkWidget *widget)
+{
+ GtkWidget *window;
+ GtkWidget *vbox;
+ GtkWidget *label;
+
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_title (GTK_WINDOW (window), "Changing Icon");
+
+ vbox = gtk_vbox_new (FALSE, 0);
+
+ gtk_container_add (GTK_CONTAINER (window), vbox);
+
+ label = gtk_label_new ("This window has an icon that changes over time");
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+
+ gtk_widget_show_all (window);
+}
+
static gboolean
focus_in_event_cb (GtkWidget *window,
GdkEvent *event,