Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/pager


Modified Files:
        e_mod_main.c 


Log Message:
Fix check for correct pager popup.
Add return values.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/pager/e_mod_main.c,v
retrieving revision 1.221
retrieving revision 1.222
diff -u -3 -r1.221 -r1.222
--- e_mod_main.c        14 Dec 2007 22:30:44 -0000      1.221
+++ e_mod_main.c        4 Jan 2008 07:40:17 -0000       1.222
@@ -738,11 +738,11 @@
    Pager_Popup *pp;
    Evas_List *l;
 
-   for(l = pager_popups; l; l = l->next)
+   for (l = pager_popups; l; l = l->next)
      {
        pp = l->data;
-       pp->pager->zone == zone;
-       return pp;
+       if (pp->pager->zone == zone)
+         return pp;
      }
    return NULL;
 }
@@ -818,8 +818,8 @@
 static E_Config_Dialog *
 _pager_config_dialog(E_Container *con, const char *params)
 {
-   if (!pager_config) return;
-   if (pager_config->config_dialog) return;
+   if (!pager_config) return NULL;
+   if (pager_config->config_dialog) return NULL;
    /* FIXME: pass zone config item */
    _config_pager_module(NULL);  
    return pager_config->config_dialog;



-------------------------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to