Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_widget_button.c 


Log Message:

don't call the callback on buttons that are disabled. this prevents some 
segfaults when clicking on disabled buttons.
also, clear up a few warnings.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_widget_button.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_widget_button.c   16 Oct 2005 07:32:11 -0000      1.5
+++ e_widget_button.c   28 Dec 2005 01:16:26 -0000      1.6
@@ -122,9 +122,13 @@
 static void
 _e_wid_signal_cb1(void *data, Evas_Object *obj, const char *emission, const 
char *source)
 {
-   e_widget_focus_steal(data);
-   _e_wid_activate_hook(data);
-   e_widget_change(data);
+   Evas_Object *wid;
+
+   wid = data;
+   if (!wid || e_widget_disabled_get(wid)) return;
+   e_widget_focus_steal(wid);
+   _e_wid_activate_hook(wid);
+   e_widget_change(wid);
 }
 
 static void




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to