summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2001-07-31 09:42:35 +0000
committerSven Neumann <neo@src.gnome.org>2001-07-31 09:42:35 +0000
commitbc5273de888bbe48c55b8d7613bacb3390a61cf0 (patch)
tree1e1916f35c45c42a27b3599c45dd8acd4f811dd4 /demos
parent3956c38a967dac7001e3b370474789c0776f9856 (diff)
downloadgtk+-bc5273de888bbe48c55b8d7613bacb3390a61cf0.tar.gz
demos/gtk-demo/appwindow.c demos/gtk-demo/item_factory.c
2001-07-31 Sven Neumann <sven@gimp.org> * demos/gtk-demo/appwindow.c * demos/gtk-demo/item_factory.c * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/appwindow.c2
-rw-r--r--demos/gtk-demo/item_factory.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/gtk-demo/appwindow.c b/demos/gtk-demo/appwindow.c
index 1d9c826f49..1d9aeea5e9 100644
--- a/demos/gtk-demo/appwindow.c
+++ b/demos/gtk-demo/appwindow.c
@@ -211,7 +211,7 @@ do_appwindow (void)
*/
accel_group = gtk_accel_group_new ();
- gtk_accel_group_attach (accel_group, GTK_OBJECT (window));
+ gtk_accel_group_attach (accel_group, G_OBJECT (window));
gtk_accel_group_unref (accel_group);
item_factory = gtk_item_factory_new (GTK_TYPE_MENU_BAR, "<main>", accel_group);
diff --git a/demos/gtk-demo/item_factory.c b/demos/gtk-demo/item_factory.c
index dfd33eb75e..5454a074d8 100644
--- a/demos/gtk-demo/item_factory.c
+++ b/demos/gtk-demo/item_factory.c
@@ -72,7 +72,7 @@ do_item_factory (void)
"<main>",
item_factory,
(GtkDestroyNotify) gtk_object_unref);
- gtk_accel_group_attach (accel_group, GTK_OBJECT (window));
+ gtk_accel_group_attach (accel_group, G_OBJECT (window));
gtk_window_set_title (GTK_WINDOW (window), "Item Factory");
gtk_container_set_border_width (GTK_CONTAINER (window), 0);
gtk_item_factory_create_items (item_factory, nmenu_items, menu_items, NULL);