summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-29 01:33:17 +0000
committerracarr <racarr>2007-01-29 01:33:17 +0000
commit8d857d78ded1f454d6d2eb1cc93432143503b86d (patch)
tree52bc2afb5922442200865cc30069ff2da29d27a9
parent51448ff486efdfbffb81490193e16672bc734cb5 (diff)
downloadberyl-desktop-manager-8d857d78ded1f454d6d2eb1cc93432143503b86d.tar.gz
beryl-desktop-manager-8d857d78ded1f454d6d2eb1cc93432143503b86d.tar.bz2
Call widget->getImages after initWidget
-rw-r--r--src/bdm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 5b99971..2fb3726 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -229,8 +229,7 @@ static int loadWidget (char * path)
widget->handleEvent = dlsym (widgetDL, "handleEvent");
- widget->images = widget->getImages ();
- widget->texts = widget->getTexts ();
+
widget->prev = (BDMWidget *) g_slist_last (Widgets);
if (widget->prev)
@@ -238,6 +237,8 @@ static int loadWidget (char * path)
widget->next = NULL;
widget->initWidget (widget);
+ widget->images = widget->getImages ();
+ widget->texts = widget->getTexts ();
/* TODO: Find how we want widget->screenArea set */
Widgets = g_slist_append (Widgets, widget);