forked from enlightenment/enlightenment
parent
bb171bd77a
commit
375ffb08c5
|
@ -1,43 +1,43 @@
|
||||||
#include "e.h"
|
#include "e.h"
|
||||||
|
|
||||||
static void *_create_data(E_Config_Dialog *cfd);
|
static void *_create_data(E_Config_Dialog *cfd);
|
||||||
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||||
static int _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
static int _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||||
static int _basic_check_changed(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
static int _basic_check_changed(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||||
static Evas_Object *_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
static Evas_Object *_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
||||||
static void _iconified_changed(void *data, Evas_Object *obj);
|
static void _iconified_changed(void *data, Evas_Object *obj);
|
||||||
static void _warp_changed(void *data, Evas_Object *obj __UNUSED__);
|
static void _warp_changed(void *data, Evas_Object *obj __UNUSED__);
|
||||||
static void _scroll_animate_changed(void *data, Evas_Object *obj);
|
static void _scroll_animate_changed(void *data, Evas_Object *obj);
|
||||||
static void _width_limits_changed(void *data, Evas_Object *obj __UNUSED__);
|
static void _width_limits_changed(void *data, Evas_Object *obj __UNUSED__);
|
||||||
static void _height_limits_changed(void *data, Evas_Object *obj __UNUSED__);
|
static void _height_limits_changed(void *data, Evas_Object *obj __UNUSED__);
|
||||||
|
|
||||||
struct _E_Config_Dialog_Data
|
struct _E_Config_Dialog_Data
|
||||||
{
|
{
|
||||||
int windows_other_desks;
|
int windows_other_desks;
|
||||||
int windows_other_screens;
|
int windows_other_screens;
|
||||||
int iconified;
|
int iconified;
|
||||||
int iconified_other_desks;
|
int iconified_other_desks;
|
||||||
int iconified_other_screens;
|
int iconified_other_screens;
|
||||||
|
|
||||||
int focus, raise, uncover;
|
int focus, raise, uncover;
|
||||||
int warp_while_selecting;
|
int warp_while_selecting;
|
||||||
int warp_at_end;
|
int warp_at_end;
|
||||||
double warp_speed;
|
double warp_speed;
|
||||||
int jump_desk;
|
int jump_desk;
|
||||||
|
|
||||||
int scroll_animate;
|
int scroll_animate;
|
||||||
double scroll_speed;
|
double scroll_speed;
|
||||||
|
|
||||||
double align_x, align_y;
|
double align_x, align_y;
|
||||||
int min_w, min_h, max_w, max_h;
|
int min_w, min_h, max_w, max_h;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
Eina_List *disable_iconified;
|
Eina_List *disable_iconified;
|
||||||
Eina_List *disable_scroll_animate;
|
Eina_List *disable_scroll_animate;
|
||||||
Eina_List *disable_warp;
|
Eina_List *disable_warp;
|
||||||
Evas_Object *min_w, *min_h;
|
Evas_Object *min_w, *min_h;
|
||||||
} gui;
|
} gui;
|
||||||
};
|
};
|
||||||
|
|
||||||
E_Config_Dialog *
|
E_Config_Dialog *
|
||||||
|
@ -56,8 +56,8 @@ e_int_config_winlist(E_Container *con, const char *params __UNUSED__)
|
||||||
v->basic.check_changed = _basic_check_changed;
|
v->basic.check_changed = _basic_check_changed;
|
||||||
|
|
||||||
cfd = e_config_dialog_new(con, _("Window List Settings"),
|
cfd = e_config_dialog_new(con, _("Window List Settings"),
|
||||||
"E", "windows/window_list",
|
"E", "windows/window_list",
|
||||||
"preferences-winlist", 0, v, NULL);
|
"preferences-winlist", 0, v, NULL);
|
||||||
return cfd;
|
return cfd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ static int
|
||||||
_basic_apply(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
_basic_apply(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||||
{
|
{
|
||||||
#define DO(_e_config, _cfdata) \
|
#define DO(_e_config, _cfdata) \
|
||||||
e_config->winlist_##_e_config = cfdata->_cfdata
|
e_config->winlist_##_e_config = cfdata->_cfdata
|
||||||
|
|
||||||
DO(list_show_iconified, iconified);
|
DO(list_show_iconified, iconified);
|
||||||
DO(list_show_other_desk_iconified, iconified_other_desks);
|
DO(list_show_other_desk_iconified, iconified_other_desks);
|
||||||
|
@ -152,7 +152,7 @@ static int
|
||||||
_basic_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
_basic_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||||
{
|
{
|
||||||
#define DO(_e_config, _cfdata) \
|
#define DO(_e_config, _cfdata) \
|
||||||
if (e_config->winlist_##_e_config != cfdata->_cfdata) return 1;
|
if (e_config->winlist_##_e_config != cfdata->_cfdata) return 1;
|
||||||
|
|
||||||
DO(list_show_iconified, iconified);
|
DO(list_show_iconified, iconified);
|
||||||
DO(list_show_other_desk_iconified, iconified_other_desks);
|
DO(list_show_other_desk_iconified, iconified_other_desks);
|
||||||
|
@ -395,3 +395,4 @@ _height_limits_changed(void *data, Evas_Object *obj __UNUSED__)
|
||||||
if (cfdata->min_h > cfdata->max_h)
|
if (cfdata->min_h > cfdata->max_h)
|
||||||
e_widget_slider_value_int_set(cfdata->gui.min_h, cfdata->max_h);
|
e_widget_slider_value_int_set(cfdata->gui.min_h, cfdata->max_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ static E_Action *act = NULL;
|
||||||
EAPI E_Module_Api e_modapi =
|
EAPI E_Module_Api e_modapi =
|
||||||
{
|
{
|
||||||
E_MODULE_API_VERSION,
|
E_MODULE_API_VERSION,
|
||||||
"Winlist"
|
"Winlist"
|
||||||
};
|
};
|
||||||
|
|
||||||
EAPI void *
|
EAPI void *
|
||||||
|
@ -29,33 +29,33 @@ e_modapi_init(E_Module *m)
|
||||||
act = e_action_add("winlist");
|
act = e_action_add("winlist");
|
||||||
if (act)
|
if (act)
|
||||||
{
|
{
|
||||||
act->func.go = _e_mod_action_winlist_cb;
|
act->func.go = _e_mod_action_winlist_cb;
|
||||||
act->func.go_mouse = _e_mod_action_winlist_mouse_cb;
|
act->func.go_mouse = _e_mod_action_winlist_mouse_cb;
|
||||||
act->func.go_key = _e_mod_action_winlist_key_cb;
|
act->func.go_key = _e_mod_action_winlist_key_cb;
|
||||||
e_action_predef_name_set(_("Window : List"), _("Next Window"),
|
e_action_predef_name_set(_("Window : List"), _("Next Window"),
|
||||||
"winlist", "next", NULL, 0);
|
"winlist", "next", NULL, 0);
|
||||||
e_action_predef_name_set(_("Window : List"), _("Previous Window"),
|
e_action_predef_name_set(_("Window : List"), _("Previous Window"),
|
||||||
"winlist", "prev", NULL, 0);
|
"winlist", "prev", NULL, 0);
|
||||||
e_action_predef_name_set(_("Window : List"),
|
e_action_predef_name_set(_("Window : List"),
|
||||||
_("Next window of same class"), "winlist",
|
_("Next window of same class"), "winlist",
|
||||||
"class-next", NULL, 0);
|
"class-next", NULL, 0);
|
||||||
e_action_predef_name_set(_("Window : List"),
|
e_action_predef_name_set(_("Window : List"),
|
||||||
_("Previous window of same class"),
|
_("Previous window of same class"),
|
||||||
"winlist", "class-prev", NULL, 0);
|
"winlist", "class-prev", NULL, 0);
|
||||||
e_action_predef_name_set(_("Window : List"),
|
e_action_predef_name_set(_("Window : List"),
|
||||||
_("Next window class"), "winlist",
|
_("Next window class"), "winlist",
|
||||||
"classes-next", NULL, 0);
|
"classes-next", NULL, 0);
|
||||||
e_action_predef_name_set(_("Window : List"),
|
e_action_predef_name_set(_("Window : List"),
|
||||||
_("Previous window class"),
|
_("Previous window class"),
|
||||||
"winlist", "classes-prev", NULL, 0);
|
"winlist", "classes-prev", NULL, 0);
|
||||||
e_action_predef_name_set(_("Window : List"), _("Window on the Left"),
|
e_action_predef_name_set(_("Window : List"), _("Window on the Left"),
|
||||||
"winlist", "left", NULL, 0);
|
"winlist", "left", NULL, 0);
|
||||||
e_action_predef_name_set(_("Window : List"), _("Window Down"),
|
e_action_predef_name_set(_("Window : List"), _("Window Down"),
|
||||||
"winlist", "down", NULL, 0);
|
"winlist", "down", NULL, 0);
|
||||||
e_action_predef_name_set(_("Window : List"), _("Window Up"),
|
e_action_predef_name_set(_("Window : List"), _("Window Up"),
|
||||||
"winlist", "up", NULL, 0);
|
"winlist", "up", NULL, 0);
|
||||||
e_action_predef_name_set(_("Window : List"), _("Window on the Right"),
|
e_action_predef_name_set(_("Window : List"), _("Window on the Right"),
|
||||||
"winlist", "right", NULL, 0);
|
"winlist", "right", NULL, 0);
|
||||||
}
|
}
|
||||||
e_module_delayed_set(m, 1);
|
e_module_delayed_set(m, 1);
|
||||||
return m;
|
return m;
|
||||||
|
@ -69,22 +69,23 @@ e_modapi_shutdown(E_Module *m __UNUSED__)
|
||||||
/* remove module-supplied action */
|
/* remove module-supplied action */
|
||||||
if (act)
|
if (act)
|
||||||
{
|
{
|
||||||
e_action_predef_name_del(_("Window : List"), _("Previous Window"));
|
e_action_predef_name_del(_("Window : List"), _("Previous Window"));
|
||||||
e_action_predef_name_del(_("Window : List"), _("Next Window"));
|
e_action_predef_name_del(_("Window : List"), _("Next Window"));
|
||||||
e_action_predef_name_del(_("Window : List"),
|
e_action_predef_name_del(_("Window : List"),
|
||||||
_("Previous window of same class"));
|
_("Previous window of same class"));
|
||||||
e_action_predef_name_del(_("Window : List"),
|
e_action_predef_name_del(_("Window : List"),
|
||||||
_("Next window of same class"));
|
_("Next window of same class"));
|
||||||
e_action_predef_name_del(_("Window : List"), _("Window on the Left"));
|
e_action_predef_name_del(_("Window : List"), _("Window on the Left"));
|
||||||
e_action_predef_name_del(_("Window : List"), _("Window Down"));
|
e_action_predef_name_del(_("Window : List"), _("Window Down"));
|
||||||
e_action_predef_name_del(_("Window : List"), _("Window Up"));
|
e_action_predef_name_del(_("Window : List"), _("Window Up"));
|
||||||
e_action_predef_name_del(_("Window : List"), _("Window on the Right"));
|
e_action_predef_name_del(_("Window : List"), _("Window on the Right"));
|
||||||
e_action_del("winlist");
|
e_action_del("winlist");
|
||||||
act = NULL;
|
act = NULL;
|
||||||
}
|
}
|
||||||
e_winlist_shutdown();
|
e_winlist_shutdown();
|
||||||
|
|
||||||
while ((cfd = e_config_dialog_get("E", "windows/window_list"))) e_object_del(E_OBJECT(cfd));
|
while ((cfd = e_config_dialog_get("E", "windows/window_list")))
|
||||||
|
e_object_del(E_OBJECT(cfd));
|
||||||
e_configure_registry_item_del("windows/window_list");
|
e_configure_registry_item_del("windows/window_list");
|
||||||
e_configure_registry_category_del("windows");
|
e_configure_registry_category_del("windows");
|
||||||
conf_module = NULL;
|
conf_module = NULL;
|
||||||
|
@ -105,72 +106,72 @@ _e_mod_action_winlist_cb(E_Object *obj, const char *params)
|
||||||
|
|
||||||
if (obj)
|
if (obj)
|
||||||
{
|
{
|
||||||
if (obj->type == E_MANAGER_TYPE)
|
if (obj->type == E_MANAGER_TYPE)
|
||||||
zone = e_util_zone_current_get((E_Manager *)obj);
|
zone = e_util_zone_current_get((E_Manager *)obj);
|
||||||
else if (obj->type == E_CONTAINER_TYPE)
|
else if (obj->type == E_CONTAINER_TYPE)
|
||||||
zone = e_util_zone_current_get(((E_Container *)obj)->manager);
|
zone = e_util_zone_current_get(((E_Container *)obj)->manager);
|
||||||
else if (obj->type == E_ZONE_TYPE)
|
else if (obj->type == E_ZONE_TYPE)
|
||||||
zone = e_util_zone_current_get(((E_Zone *)obj)->container->manager);
|
zone = e_util_zone_current_get(((E_Zone *)obj)->container->manager);
|
||||||
else
|
else
|
||||||
zone = e_util_zone_current_get(e_manager_current_get());
|
zone = e_util_zone_current_get(e_manager_current_get());
|
||||||
}
|
}
|
||||||
if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
|
if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
|
||||||
if (zone)
|
if (zone)
|
||||||
{
|
{
|
||||||
if (params)
|
if (params)
|
||||||
{
|
{
|
||||||
if (!strcmp(params, "next"))
|
if (!strcmp(params, "next"))
|
||||||
{
|
{
|
||||||
if (!e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
if (!e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "prev"))
|
else if (!strcmp(params, "prev"))
|
||||||
{
|
{
|
||||||
if (!e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
if (!e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
||||||
e_winlist_prev();
|
e_winlist_prev();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "class-next"))
|
else if (!strcmp(params, "class-next"))
|
||||||
{
|
{
|
||||||
if (!e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
if (!e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "class-prev"))
|
else if (!strcmp(params, "class-prev"))
|
||||||
{
|
{
|
||||||
if (!e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
if (!e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
||||||
e_winlist_prev();
|
e_winlist_prev();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "classes-next"))
|
else if (!strcmp(params, "classes-next"))
|
||||||
{
|
{
|
||||||
if (!e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
if (!e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "classes-prev"))
|
else if (!strcmp(params, "classes-prev"))
|
||||||
{
|
{
|
||||||
if (!e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
if (!e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
||||||
e_winlist_prev();
|
e_winlist_prev();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "left"))
|
else if (!strcmp(params, "left"))
|
||||||
{
|
{
|
||||||
e_winlist_left(zone);
|
e_winlist_left(zone);
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "down"))
|
else if (!strcmp(params, "down"))
|
||||||
{
|
{
|
||||||
e_winlist_down(zone);
|
e_winlist_down(zone);
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "up"))
|
else if (!strcmp(params, "up"))
|
||||||
{
|
{
|
||||||
e_winlist_up(zone);
|
e_winlist_up(zone);
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "right"))
|
else if (!strcmp(params, "right"))
|
||||||
{
|
{
|
||||||
e_winlist_right(zone);
|
e_winlist_right(zone);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
if (!e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,86 +183,86 @@ _e_mod_action_winlist_mouse_cb(E_Object *obj, const char *params,
|
||||||
|
|
||||||
if (obj)
|
if (obj)
|
||||||
{
|
{
|
||||||
if (obj->type == E_MANAGER_TYPE)
|
if (obj->type == E_MANAGER_TYPE)
|
||||||
zone = e_util_zone_current_get((E_Manager *)obj);
|
zone = e_util_zone_current_get((E_Manager *)obj);
|
||||||
else if (obj->type == E_CONTAINER_TYPE)
|
else if (obj->type == E_CONTAINER_TYPE)
|
||||||
zone = e_util_zone_current_get(((E_Container *)obj)->manager);
|
zone = e_util_zone_current_get(((E_Container *)obj)->manager);
|
||||||
else if (obj->type == E_ZONE_TYPE)
|
else if (obj->type == E_ZONE_TYPE)
|
||||||
zone = e_util_zone_current_get(((E_Zone *)obj)->container->manager);
|
zone = e_util_zone_current_get(((E_Zone *)obj)->container->manager);
|
||||||
else
|
else
|
||||||
zone = e_util_zone_current_get(e_manager_current_get());
|
zone = e_util_zone_current_get(e_manager_current_get());
|
||||||
}
|
}
|
||||||
if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
|
if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
|
||||||
if (zone)
|
if (zone)
|
||||||
{
|
{
|
||||||
if (params)
|
if (params)
|
||||||
{
|
{
|
||||||
if (!strcmp(params, "next"))
|
if (!strcmp(params, "next"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "prev"))
|
else if (!strcmp(params, "prev"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_prev();
|
e_winlist_prev();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "class-next"))
|
else if (!strcmp(params, "class-next"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "class-prev"))
|
else if (!strcmp(params, "class-prev"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_prev();
|
e_winlist_prev();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "classes-next"))
|
else if (!strcmp(params, "classes-next"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "classes-prev"))
|
else if (!strcmp(params, "classes-prev"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_prev();
|
e_winlist_prev();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "left"))
|
else if (!strcmp(params, "left"))
|
||||||
{
|
{
|
||||||
e_winlist_left(zone);
|
e_winlist_left(zone);
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "down"))
|
else if (!strcmp(params, "down"))
|
||||||
{
|
{
|
||||||
e_winlist_down(zone);
|
e_winlist_down(zone);
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "up"))
|
else if (!strcmp(params, "up"))
|
||||||
{
|
{
|
||||||
e_winlist_up(zone);
|
e_winlist_up(zone);
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "right"))
|
else if (!strcmp(params, "right"))
|
||||||
{
|
{
|
||||||
e_winlist_right(zone);
|
e_winlist_right(zone);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -272,85 +273,86 @@ _e_mod_action_winlist_key_cb(E_Object *obj, const char *params, Ecore_Event_Key
|
||||||
|
|
||||||
if (obj)
|
if (obj)
|
||||||
{
|
{
|
||||||
if (obj->type == E_MANAGER_TYPE)
|
if (obj->type == E_MANAGER_TYPE)
|
||||||
zone = e_util_zone_current_get((E_Manager *)obj);
|
zone = e_util_zone_current_get((E_Manager *)obj);
|
||||||
else if (obj->type == E_CONTAINER_TYPE)
|
else if (obj->type == E_CONTAINER_TYPE)
|
||||||
zone = e_util_zone_current_get(((E_Container *)obj)->manager);
|
zone = e_util_zone_current_get(((E_Container *)obj)->manager);
|
||||||
else if (obj->type == E_ZONE_TYPE)
|
else if (obj->type == E_ZONE_TYPE)
|
||||||
zone = e_util_zone_current_get(((E_Zone *)obj)->container->manager);
|
zone = e_util_zone_current_get(((E_Zone *)obj)->container->manager);
|
||||||
else
|
else
|
||||||
zone = e_util_zone_current_get(e_manager_current_get());
|
zone = e_util_zone_current_get(e_manager_current_get());
|
||||||
}
|
}
|
||||||
if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
|
if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
|
||||||
if (zone)
|
if (zone)
|
||||||
{
|
{
|
||||||
if (params)
|
if (params)
|
||||||
{
|
{
|
||||||
if (!strcmp(params, "next"))
|
if (!strcmp(params, "next"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "prev"))
|
else if (!strcmp(params, "prev"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_prev();
|
e_winlist_prev();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "class-next"))
|
else if (!strcmp(params, "class-next"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "class-prev"))
|
else if (!strcmp(params, "class-prev"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASS_WINDOWS))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_prev();
|
e_winlist_prev();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "classes-next"))
|
else if (!strcmp(params, "classes-next"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "classes-prev"))
|
else if (!strcmp(params, "classes-prev"))
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_CLASSES))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_prev();
|
e_winlist_prev();
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "left"))
|
else if (!strcmp(params, "left"))
|
||||||
{
|
{
|
||||||
e_winlist_left(zone);
|
e_winlist_left(zone);
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "down"))
|
else if (!strcmp(params, "down"))
|
||||||
{
|
{
|
||||||
e_winlist_down(zone);
|
e_winlist_down(zone);
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "up"))
|
else if (!strcmp(params, "up"))
|
||||||
{
|
{
|
||||||
e_winlist_up(zone);
|
e_winlist_up(zone);
|
||||||
}
|
}
|
||||||
else if (!strcmp(params, "right"))
|
else if (!strcmp(params, "right"))
|
||||||
{
|
{
|
||||||
e_winlist_right(zone);
|
e_winlist_right(zone);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
if (e_winlist_show(zone, E_WINLIST_FILTER_NONE))
|
||||||
e_winlist_modifiers_set(ev->modifiers);
|
e_winlist_modifiers_set(ev->modifiers);
|
||||||
else
|
else
|
||||||
e_winlist_next();
|
e_winlist_next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue