X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenu.c;h=994a8a9378d32a3ef5cf534e5e69359862f41ebb;hb=24eb9f85df07efb0d57f06a255ac6673bf93d8a7;hp=74c234827ad945ffb0b28b979ac1a23a11b0e8b7;hpb=03d42b5d8253ad2de94df20b12b9fb22ce51eb3d;p=chaz%2Fopenbox diff --git a/openbox/menu.c b/openbox/menu.c index 74c23482..994a8a93 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -90,12 +90,14 @@ void menu_startup() menu_add_entry(m, menu_entry_new_submenu("subz", s)); + /* t = (Menu *)plugin_create("timed_menu"); a = action_from_string("execute"); a->data.execute.path = g_strdup("xeyes"); menu_add_entry(t, menu_entry_new("xeyes", a)); menu_add_entry(m, menu_entry_new_submenu("timed", t)); - + */ + s = menu_new("empty", "chub", m); menu_add_entry(m, menu_entry_new_submenu("empty", s)); @@ -234,7 +236,9 @@ void menu_add_entry(Menu *menu, MenuEntry *entry) { XSetWindowAttributes attrib; - g_assert(menu != NULL && entry != NULL && entry->item == None); + g_assert(menu != NULL); + g_assert(entry != NULL); + g_assert(entry->item == None); menu->entries = g_list_append(menu->entries, entry); entry->parent = menu;