comparison audacious/widget.c @ 192:0ee0b9b6db7e trunk

[svn] headless now working, use --headless if you wish to experiment.
author nenolod
date Mon, 14 Nov 2005 23:43:39 -0800
parents cb178e5ad177
children 02c17a5c99e3
comparison
equal deleted inserted replaced
191:885780effb5d 192:0ee0b9b6db7e
73 } 73 }
74 74
75 void 75 void
76 widget_show(Widget * widget) 76 widget_show(Widget * widget)
77 { 77 {
78 if (!widget)
79 return;
80
78 widget->visible = TRUE; 81 widget->visible = TRUE;
79 widget_draw(widget); 82 widget_draw(widget);
80 } 83 }
81 84
82 void 85 void
83 widget_hide(Widget * widget) 86 widget_hide(Widget * widget)
84 { 87 {
88 if (!widget)
89 return;
90
85 widget->visible = FALSE; 91 widget->visible = FALSE;
86 } 92 }
87 93
88 gboolean 94 gboolean
89 widget_is_visible(Widget * widget) 95 widget_is_visible(Widget * widget)
90 { 96 {
97 if (!widget)
98 return FALSE;
99
91 return widget->visible; 100 return widget->visible;
92 } 101 }
93 102
94 void 103 void
95 widget_resize(Widget * widget, gint width, gint height) 104 widget_resize(Widget * widget, gint width, gint height)