Menustuff added/modified!

This commit is contained in:
robijn
2002-05-26 19:21:23 +00:00
parent dc4c049721
commit 3168d4cafc
27 changed files with 2304 additions and 584 deletions
+2 -11
View File
@@ -6,9 +6,10 @@
* COPYING file distributed with this package.
*
* Copyright (c) 1999, William Ferrell, Scott Scriven
* 2002, Joris Robijn
*
*
* Does widget management
* Does all actions on widgets
*
*/
@@ -65,9 +66,6 @@ struct icontable {
{0,NULL}
};
//static widget *widget_finder (LinkedList * list, char *id);
//static int widget_remover (LinkedList * list, widget * w);
Widget *
widget_create (char *id, WidgetType type, Screen * screen)
@@ -128,14 +126,8 @@ widget_destroy (Widget * w)
if (w->id)
free (w->id);
/*debug(RPT_DEBUG, "widget_destroy: id...");*/
if (w->text)
free (w->text);
/*debug(RPT_DEBUG, "widget_destroy: text...");*/
if (w->type == WID_FRAME) {
/* TODO: create a screen for the frame widget */
}
/* Free subscreen of frame widget too */
if (w->type == WID_FRAME) {
@@ -143,7 +135,6 @@ widget_destroy (Widget * w)
}
free (w);
/*debug(RPT_DEBUG, "widget_destroy: widget...");*/
return 0;
}