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));
{
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;
{
/* if the menu is not shown, run a process and use its output
as menu */
- char *args[] = {"/bin/sh", "-c", "ls", NULL};
+ char *args[] = {"/bin/sh", "-c", TIMED_MENU_DATA(data)->command,
+ NULL};
GIOChannel *io;
char *line;
gint child, c_stdout, line_len, terminator_pos;
d->type = TIMED_MENU_PIPE;
d->timer = timer_start(1000000, &timed_menu_timeout_handler, m);
+ d->command = "ls";
m->plugin_data = (void *)d;