Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_actions.c e_int_menus.c 


Log Message:
Added action wrapper for "Cleanup Windows"

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_actions.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -3 -r1.83 -r1.84
--- e_actions.c 11 Oct 2006 12:14:45 -0000      1.83
+++ e_actions.c 11 Oct 2006 23:53:39 -0000      1.84
@@ -1354,7 +1354,6 @@
      }
 }
 
-/***************************************************************************/
 ACT_FN_GO(desk_deskshow_toggle)
 {
    E_Zone *zone;
@@ -1367,6 +1366,16 @@
      }
 }
 
+ACT_FN_GO(cleanup_windows)
+{
+   E_Zone *zone;
+
+   zone = _e_actions_zone_get(obj);
+   if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
+   if (zone)
+     e_place_zone_region_smart_cleanup(zone);
+}
+
 /***************************************************************************/
 static E_Dialog *exit_dialog = NULL;
 
@@ -2006,6 +2015,10 @@
    /* desk_lock */
    ACT_GO(desk_lock);
    e_action_predef_name_set(_("Desktop"), _("Desktop Lock"), "desk_lock", 
NULL, NULL, 0);
+
+   /* cleanup_windows */
+   ACT_GO(cleanup_windows);
+   e_action_predef_name_set(_("Desktop"), _("Cleanup Windows"), 
"cleanup_windows", NULL, NULL, 0);
    
    return 1;
 }
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_menus.c,v
retrieving revision 1.170
retrieving revision 1.171
diff -u -3 -r1.170 -r1.171
--- e_int_menus.c       11 Oct 2006 17:51:57 -0000      1.170
+++ e_int_menus.c       11 Oct 2006 23:53:39 -0000      1.171
@@ -988,10 +988,10 @@
 static void 
 _e_int_menus_clients_cleanup_cb(void *data, E_Menu *m, E_Menu_Item *mi)
 {
-   E_Zone *zone;
-
-   zone = data;
-   e_place_zone_region_smart_cleanup(zone);
+   E_Action *act;
+   
+   act = e_action_find("cleanup_windows");
+   if (act) act->func.go(E_OBJECT(m->zone), NULL);
 }
 
 static void



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to