watch out for not loading the timed_menu plugin

This commit is contained in:
Dana Jansens 2003-05-14 18:40:33 +00:00
parent c5b8ec744c
commit 7b65469aea

View file

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