From 8d857d78ded1f454d6d2eb1cc93432143503b86d Mon Sep 17 00:00:00 2001 From: racarr Date: Mon, 29 Jan 2007 01:33:17 +0000 Subject: Call widget->getImages after initWidget --- src/bdm.c | 5 +++-- 1 file 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); -- cgit v1.1