diff options
Diffstat (limited to 'demos/gtk-demo/item_factory.c')
-rw-r--r-- | demos/gtk-demo/item_factory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/item_factory.c b/demos/gtk-demo/item_factory.c index 34f3cb51d6..390f4a75c3 100644 --- a/demos/gtk-demo/item_factory.c +++ b/demos/gtk-demo/item_factory.c @@ -68,7 +68,7 @@ do_item_factory (void) item_factory = gtk_item_factory_new (GTK_TYPE_MENU_BAR, "<main>", accel_group); g_object_set_data_full (G_OBJECT (window), "<main>", item_factory, (GDestroyNotify) g_object_unref); - gtk_accel_group_attach (accel_group, G_OBJECT (window)); + gtk_window_add_accel_group (window, accel_group); 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); |