summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);