diff options
author | Tim Janik <timj@src.gnome.org> | 1998-03-08 11:22:26 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-03-08 11:22:26 +0000 |
commit | 6eca1a93c0d97957e22e04d1accd1ed75f7fb977 (patch) | |
tree | d67d35f3db91367b5fa30565bfb4d63db7ddd828 /gtk/gtkmenuitem.c | |
parent | 77ff63f7e71f901ceba6edbf0c7ed8d703d1f0f7 (diff) | |
download | gtk+-6eca1a93c0d97957e22e04d1accd1ed75f7fb977.tar.gz |
fix a NULL warning. -timj
fix a NULL warning.
-timj
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r-- | gtk/gtkmenuitem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index b710afd8a9..a95391704b 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -680,7 +680,7 @@ gtk_menu_item_position_menu (GtkMenu *menu, gpointer user_data) { GtkMenuItem *menu_item; - GtkMenuItem *parent_menu_item; + GtkWidget *parent_menu_item; gint screen_width; gint screen_height; gint twidth, theight; @@ -720,9 +720,9 @@ gtk_menu_item_position_menu (GtkMenu *menu, case GTK_LEFT_RIGHT: menu_item->submenu_direction = GTK_DIRECTION_RIGHT; - parent_menu_item = GTK_MENU_ITEM (GTK_MENU (GTK_WIDGET (menu_item)->parent)->parent_menu_item); + parent_menu_item = GTK_MENU (GTK_WIDGET (menu_item)->parent)->parent_menu_item; if (parent_menu_item) - menu_item->submenu_direction = parent_menu_item->submenu_direction; + menu_item->submenu_direction = GTK_MENU_ITEM (parent_menu_item)->submenu_direction; switch (menu_item->submenu_direction) { |