Commit 6eca1a93 authored by Tim Janik's avatar Tim Janik

fix a NULL warning. -timj

fix a NULL warning.
-timj
parent 77ff63f7
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment