From: Dana Jansens Date: Wed, 14 May 2003 18:40:33 +0000 (+0000) Subject: watch out for not loading the timed_menu plugin X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=7b65469aea4db91cb704c4fe283773a0ffb72d7d;p=chaz%2Fopenbox watch out for not loading the timed_menu plugin --- diff --git a/openbox/menu.c b/openbox/menu.c index 11d04009..425a7537 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -93,10 +93,12 @@ 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)); + if (t) { + 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));