summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-28 18:45:26 +0000
committerracarr <racarr>2007-01-28 18:45:26 +0000
commit954bb9202d2fc19dff8e633dd8eef14c4c3c31d3 (patch)
tree3f7d22831d9ec4fda9e6adc9d9e1f29eab6b596f
parent926f30587af06e23da37bc3b9b7f09211fe4e4e6 (diff)
downloadberyl-desktop-manager-954bb9202d2fc19dff8e633dd8eef14c4c3c31d3.tar.gz
beryl-desktop-manager-954bb9202d2fc19dff8e633dd8eef14c4c3c31d3.tar.bz2
Write updateWidgets function
-rw-r--r--src/bdm.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/bdm.c b/src/bdm.c
index fa8e16d..fc543eb 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -20,7 +20,7 @@
#include <X11/Xlib.h>
#include <X11/Xatom.h>
-BDMWidgetList widgetList;
+BDMWidgetList * widgetList;
static void renderImage(cairo_t * cr, BDMImage * image, ScreenArea * area)
{
@@ -47,6 +47,21 @@ static void renderImage(cairo_t * cr, BDMImage * image, ScreenArea * area)
}
+static void updateWidgets(cairo_t * cr,ScreenArea * area)
+{
+ BDMWidget * widget = widgetList->head;
+ BDMImage * image;
+ for (widget=widgetList->head;widget;widget=widget->next)
+ {
+ widget->updateWidget();
+ for (image = widget->getImages(); widget; widget = widget->next)
+ {
+ renderImage(cr,image,area);
+ }
+ // DO TEXT
+
+ }
+}
static void render_pixbuf (cairo_t * cr, ScreenArea * area)