summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguillaume <guillaume>2007-01-29 01:38:31 +0000
committerguillaume <guillaume>2007-01-29 01:38:31 +0000
commit2c189172ef0fcaabbeb37db3383b090304fe7702 (patch)
tree0bd76f0100d95c7e97a701d56d7e65ea09f9c975
parent25692a02651d75097411d9c2548e73ac0276ad5d (diff)
downloadberyl-desktop-manager-2c189172ef0fcaabbeb37db3383b090304fe7702.tar.gz
beryl-desktop-manager-2c189172ef0fcaabbeb37db3383b090304fe7702.tar.bz2
bdm: texts = NULL, whitespaces, removed manual loading
-rw-r--r--src/bdm.c5
-rw-r--r--src/testWidget.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 228df97..173e7d8 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -122,7 +122,6 @@ static void updateWidgets(cairo_t * cr,ScreenArea * area)
for (widgets=Widgets;widgets;widgets=widgets->next)
{
widget = widgets->data;
-
widget->updateWidget();
if (widget->attrib->needsPainting)
{
@@ -231,8 +230,6 @@ static int loadWidget (char * path)
widget->handleEvent = dlsym (widgetDL, "handleEvent");
-
-
widget->prev = (BDMWidget *) g_slist_last (Widgets);
if (widget->prev)
widget->prev->next = widget;
@@ -371,8 +368,6 @@ int main(int argc, char * argv[])
g_key_file_free (kf);
- loadWidget("./libTestWidget.so");
-
GSList * wp = Wallpapers;
for (j = 0; j < numy; j++)
diff --git a/src/testWidget.c b/src/testWidget.c
index 1a7aa97..c966ab9 100644
--- a/src/testWidget.c
+++ b/src/testWidget.c
@@ -7,7 +7,7 @@ BDMWidget * mywidget;
int init (BDMWidget * widget)
{
images = malloc(sizeof(BDMImage));
- texts = malloc(sizeof(BDMText));
+ texts = NULL;
mywidget = widget;
images->attrib = malloc(sizeof(BDMPaintAttribs));