Added support for client supplied menus.
Also modified existing menustuff slightly (on some points I made some things more consistent).
This commit is contained in:
@@ -75,6 +75,8 @@ screen_create (char * id, Client * client)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
menuscreen_add_screen (s);
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
@@ -86,6 +88,10 @@ screen_destroy (Screen * s)
|
||||
if (!s)
|
||||
return -1;
|
||||
|
||||
menuscreen_remove_screen (s);
|
||||
|
||||
screenlist_remove (s);
|
||||
|
||||
for (w=LL_GetFirst(s->widgetlist); w; w=LL_GetNext(s->widgetlist)) {
|
||||
/* Free a widget...*/
|
||||
widget_destroy (w);
|
||||
|
||||
Reference in New Issue
Block a user