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:
Matthias Clasen 2007-12-09 23:03:45 +00:00 committed by Thomas James Alexander Thurman
parent 4564236abf
commit e7dc04d28e
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -474,12 +474,14 @@ 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);
} }
} }
}
g_signal_connect (menu->menu, "selection_done", g_signal_connect (menu->menu, "selection_done",