Enlightenment CVS committal

Author  : urandom
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_gadcon_popup.c 


Log Message:
extra null check, since E_OBJECT_CHECK doesn't even check that

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_gadcon_popup.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_gadcon_popup.c    20 Aug 2007 18:50:20 -0000      1.1
+++ e_gadcon_popup.c    25 Aug 2007 09:41:25 -0000      1.2
@@ -43,6 +43,7 @@
    Evas_Coord w = 0, h = 0;
    Evas_Object *old_o;
 
+   if (!pop) return;
    E_OBJECT_CHECK(pop);
    E_OBJECT_TYPE_CHECK(pop, E_GADCON_POPUP_TYPE);
 
@@ -68,6 +69,7 @@
 {
    Evas_Coord gx, gy, gw, gh, zw, zh, px, py, ww, wh;
 
+   if (!pop) return;
    E_OBJECT_CHECK(pop);
    E_OBJECT_TYPE_CHECK(pop, E_GADCON_POPUP_TYPE);
 
@@ -131,6 +133,7 @@
 EAPI void
 e_gadcon_popup_hide(E_Gadcon_Popup *pop)
 {
+   if (!pop) return;
    E_OBJECT_CHECK(pop);
    E_OBJECT_TYPE_CHECK(pop, E_GADCON_POPUP_TYPE);
    if (pop->pinned) return;
@@ -140,6 +143,7 @@
 EAPI void
 e_gadcon_popup_toggle_pinned(E_Gadcon_Popup *pop)
 {
+   if (!pop) return;
    E_OBJECT_CHECK(pop);
    E_OBJECT_TYPE_CHECK(pop, E_GADCON_POPUP_TYPE);
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to