Enlightenment CVS committal
Author : ningerso
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_text.c ewl_widget.c
Log Message:
Fix evas warnings when passing NULL objects and debugging output is enabled.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -3 -r1.185 -r1.186
--- ewl_text.c 13 Nov 2007 05:55:48 -0000 1.185
+++ ewl_text.c 20 Nov 2007 02:30:09 -0000 1.186
@@ -3315,7 +3315,7 @@
DCHECK_TYPE(w, EWL_TEXT_TYPE);
t = EWL_TEXT(w);
- evas_object_hide(t->textblock);
+ if (t->textblock) evas_object_hide(t->textblock);
ewl_text_triggers_hide(t);
DLEAVE_FUNCTION(DLEVEL_STABLE);
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.c,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -3 -r1.152 -r1.153
--- ewl_widget.c 12 Nov 2007 22:42:22 -0000 1.152
+++ ewl_widget.c 20 Nov 2007 02:30:09 -0000 1.153
@@ -2465,8 +2465,8 @@
* Show the theme and clip box if widget is visible
*/
if (VISIBLE(w)) {
- evas_object_show(w->fx_clip_box);
- evas_object_show(w->theme_object);
+ if (w->fx_clip_box) evas_object_show(w->fx_clip_box);
+ if (w->theme_object) evas_object_show(w->theme_object);
}
DLEAVE_FUNCTION(DLEVEL_STABLE);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs