[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[E-devel] Patch for ewl_icon



This fixes the warning when running the advanced -> icon test in
ewl_test.  I'm not positive its correct, but figured I'd drop it to the
list for furthur review.

-- 
Nick Hughart
Code poet, Linux user, and web developer all in one.
? ewl_icon_fix.diff
Index: ewl_icon.c
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_icon.c,v
retrieving revision 1.20
diff -u -r1.20 ewl_icon.c
--- ewl_icon.c	8 Oct 2006 17:26:22 -0000	1.20
+++ ewl_icon.c	17 Nov 2006 05:36:08 -0000
@@ -494,7 +494,7 @@
 	 * alt text */
 	img = ewl_icon_theme_icon_path_get(EWL_ICON_IMAGE_LOADING, NULL);
 	file = ewl_icon_image_file_get(icon);
-	if (!icon->image || !strcmp(img, file))
+	if (icon->image && !strcmp(img, file))
 	{
 		ewl_widget_hide(icon->image);
 		ewl_widget_show(icon->alt);