check for null before adding menu; closes #496054.
2007-12-08 Matthias Clasen <mclasen@redhat.com> * src/menu.c (meta_window_menu_new): check for null before adding menu; closes #496054. svn path=/trunk/; revision=3465
This commit is contained in:
parent
4564236abf
commit
e7dc04d28e
@ -1,3 +1,8 @@
|
|||||||
|
2007-12-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* src/menu.c (meta_window_menu_new): check for null before adding
|
||||||
|
menu; closes #496054.
|
||||||
|
|
||||||
2007-12-08 Thomas Thurman <tthurman@gnome.org>
|
2007-12-08 Thomas Thurman <tthurman@gnome.org>
|
||||||
|
|
||||||
* src/keybindings.c (meta_display_process_key_event): Recur if the
|
* src/keybindings.c (meta_display_process_key_event): Recur if the
|
||||||
|
@ -474,10 +474,12 @@ meta_window_menu_new (MetaFrames *frames,
|
|||||||
g_free, FALSE, FALSE);
|
g_free, FALSE, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mi)
|
||||||
|
{
|
||||||
|
gtk_menu_shell_append (GTK_MENU_SHELL (menu->menu), mi);
|
||||||
|
|
||||||
gtk_menu_shell_append (GTK_MENU_SHELL (menu->menu), mi);
|
gtk_widget_show (mi);
|
||||||
|
}
|
||||||
gtk_widget_show (mi);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user