PATCH: gtkcompat.h produces warnings with gtk_menu_append
- From: Johannes Stezenbach <js convergence de>
- To: gtk-devel-list gnome org
- Subject: PATCH: gtkcompat.h produces warnings with gtk_menu_append
- Date: Tue, 03 Jul 2001 17:49:15 +0200
I was playing around with glade and got a bunch
of compiler warnings when using a GtkOptionMenu...
Regards,
Johannes
--- gtkcompat.h.in.orig Tue Jul 3 17:32:02 2001
+++ gtkcompat.h.in Tue Jul 3 17:33:19 2001
@@ -72,9 +72,12 @@
#define gtk_window_position gtk_window_set_position
#define gtk_toggle_button_set_state gtk_toggle_button_set_active
#define gtk_check_menu_item_set_state gtk_check_menu_item_set_active
-#define gtk_menu_append gtk_menu_shell_append
-#define gtk_menu_prepend gtk_menu_shell_prepend
-#define gtk_menu_insert gtk_menu_shell_insert
+#define gtk_menu_append(menu, widget) \
+ gtk_menu_shell_append(GTK_MENU_SHELL (menu), (widget))
+#define gtk_menu_prepend(menu, widget) \
+ gtk_menu_shell_prepend(GTK_MENU_SHELL (menu), (widget))
+#define gtk_menu_insert(menu, widget, pos) \
+ gtk_menu_shell_insert(GTK_MENU_SHELL (menu), (widget), (pos))
#define GTK_TYPE_GDK_WINDOW_TYPE GDK_TYPE_WINDOW_TYPE
#define GTK_TYPE_GDK_WINDOW_CLASS GDK_TYPE_WINDOW_CLASS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]