From 027884163b308d09f29fcde892961bf807b4d4c6 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 16 Nov 2001 11:50:04 +0000 Subject: [PATCH] demos/gtk-demo/appwindow.c reduce compiler warnings 2001-11-16 Sven Neumann * demos/gtk-demo/appwindow.c * demos/gtk-demo/menus.c: reduce compiler warnings --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ demos/gtk-demo/appwindow.c | 2 +- demos/gtk-demo/menus.c | 2 +- 9 files changed, 37 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 949275eedb..2bbf9499c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-11-16 Sven Neumann + + * demos/gtk-demo/appwindow.c + * demos/gtk-demo/menus.c: reduce compiler warnings + Thu Nov 15 19:47:09 2001 Owen Taylor * demos/gtk-demo/main.c (button_press_event_cb): Remove diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 949275eedb..2bbf9499c2 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2001-11-16 Sven Neumann + + * demos/gtk-demo/appwindow.c + * demos/gtk-demo/menus.c: reduce compiler warnings + Thu Nov 15 19:47:09 2001 Owen Taylor * demos/gtk-demo/main.c (button_press_event_cb): Remove diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 949275eedb..2bbf9499c2 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2001-11-16 Sven Neumann + + * demos/gtk-demo/appwindow.c + * demos/gtk-demo/menus.c: reduce compiler warnings + Thu Nov 15 19:47:09 2001 Owen Taylor * demos/gtk-demo/main.c (button_press_event_cb): Remove diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 949275eedb..2bbf9499c2 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2001-11-16 Sven Neumann + + * demos/gtk-demo/appwindow.c + * demos/gtk-demo/menus.c: reduce compiler warnings + Thu Nov 15 19:47:09 2001 Owen Taylor * demos/gtk-demo/main.c (button_press_event_cb): Remove diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 949275eedb..2bbf9499c2 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2001-11-16 Sven Neumann + + * demos/gtk-demo/appwindow.c + * demos/gtk-demo/menus.c: reduce compiler warnings + Thu Nov 15 19:47:09 2001 Owen Taylor * demos/gtk-demo/main.c (button_press_event_cb): Remove diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 949275eedb..2bbf9499c2 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2001-11-16 Sven Neumann + + * demos/gtk-demo/appwindow.c + * demos/gtk-demo/menus.c: reduce compiler warnings + Thu Nov 15 19:47:09 2001 Owen Taylor * demos/gtk-demo/main.c (button_press_event_cb): Remove diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 949275eedb..2bbf9499c2 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2001-11-16 Sven Neumann + + * demos/gtk-demo/appwindow.c + * demos/gtk-demo/menus.c: reduce compiler warnings + Thu Nov 15 19:47:09 2001 Owen Taylor * demos/gtk-demo/main.c (button_press_event_cb): Remove diff --git a/demos/gtk-demo/appwindow.c b/demos/gtk-demo/appwindow.c index 5020152ff5..7869037f45 100644 --- a/demos/gtk-demo/appwindow.c +++ b/demos/gtk-demo/appwindow.c @@ -213,7 +213,7 @@ do_appwindow (void) */ accel_group = gtk_accel_group_new (); - gtk_window_add_accel_group (window, accel_group); + gtk_window_add_accel_group (GTK_WINDOW (window), accel_group); g_object_unref (accel_group); item_factory = gtk_item_factory_new (GTK_TYPE_MENU_BAR, "
", accel_group); diff --git a/demos/gtk-demo/menus.c b/demos/gtk-demo/menus.c index 60e20e1355..eb4df916f7 100644 --- a/demos/gtk-demo/menus.c +++ b/demos/gtk-demo/menus.c @@ -98,7 +98,7 @@ do_menus (void) G_CALLBACK (gtk_true), NULL); accel_group = gtk_accel_group_new (); - gtk_window_add_accel_group (window, accel_group); + gtk_window_add_accel_group (GTK_WINDOW (window), accel_group); gtk_window_set_title (GTK_WINDOW (window), "menus"); gtk_container_set_border_width (GTK_CONTAINER (window), 0);