}
}
-/***************************************************************************/
ACT_FN_GO(desk_deskshow_toggle)
{
E_Zone *zone;
}
}
+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;
/* 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;
}
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