aboutsummaryrefslogtreecommitdiffstats
path: root/widget_icon.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-03-03 04:44:16 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-03-03 04:44:16 +0000
commitb9a217e0dc5906e07b9f1e4674e9b797b6dd9b46 (patch)
treebf6491cefb0134736fc5f971226f54074be7324f /widget_icon.c
parent9ef4282e9e32e857f4d0cac9df6d58f2cba159f4 (diff)
downloadlcd4linux-b9a217e0dc5906e07b9f1e4674e9b797b6dd9b46.tar.gz
[lcd4linux @ 2004-03-03 04:44:16 by reinelt]
changes (cosmetics?) to the big patch from Martin hash patch un-applied git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@385 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_icon.c')
-rw-r--r--widget_icon.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/widget_icon.c b/widget_icon.c
index 6a6ad6b..2580dc6 100644
--- a/widget_icon.c
+++ b/widget_icon.c
@@ -1,4 +1,4 @@
-/* $Id: widget_icon.c,v 1.8 2004/03/03 03:47:04 reinelt Exp $
+/* $Id: widget_icon.c,v 1.9 2004/03/03 04:44:16 reinelt Exp $
*
* icon widget handling
*
@@ -21,6 +21,10 @@
*
*
* $Log: widget_icon.c,v $
+ * Revision 1.9 2004/03/03 04:44:16 reinelt
+ * changes (cosmetics?) to the big patch from Martin
+ * hash patch un-applied
+ *
* Revision 1.8 2004/03/03 03:47:04 reinelt
* big patch from Martin Hejl:
* - use qprintf() where appropriate
@@ -73,11 +77,11 @@
#include "debug.h"
#include "cfg.h"
+#include "qprintf.h"
#include "evaluator.h"
#include "timer.h"
#include "widget.h"
#include "widget_icon.h"
-#include "qprintf.h"
#ifdef WITH_DMALLOC
#include <dmalloc.h>
@@ -212,11 +216,9 @@ int widget_icon_init (WIDGET *Self)
int widget_icon_quit (WIDGET *Self)
{
- WIDGET_ICON *Icon;
-
if (Self) {
- Icon = Self->data;
- if (Icon) {
+ if (Self->data) {
+ WIDGET_ICON *Icon = Self->data;
if (Icon->bitmap) free (Icon->bitmap);
free(Self->data);
Self->data=NULL;