forked from enlightenment/enlightenment
better conf_winlist.
* reorganize items resulting in less toolbook pages. * smaller labels * smarter constraints and disable * better basic settings, collapsing common used options SVN revision: 46971
This commit is contained in:
parent
707f0fa37e
commit
bb45a68197
|
@ -3,60 +3,73 @@
|
|||
static void *_create_data(E_Config_Dialog *cfd);
|
||||
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_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 int _advanced_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||
static int _advanced_check_changed(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||
static Evas_Object *_advanced_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
||||
//static void _cb_disable_check(void *data, Evas_Object *obj);
|
||||
static void _cb_enable_check(void *data, Evas_Object *obj);
|
||||
static void _cb_disable_check_list(void *data, Evas_Object *obj);
|
||||
static void _sync_advanced_to_basic(E_Config_Dialog_Data *cfdata);
|
||||
|
||||
struct _E_Config_Dialog_Data
|
||||
struct _E_Config_Dialog_Data
|
||||
{
|
||||
int warp_while_selecting;
|
||||
int warp_at_end;
|
||||
int scroll_animate;
|
||||
int list_show_iconified;
|
||||
int list_show_other_desk_iconified;
|
||||
int list_show_other_screen_iconified;
|
||||
int list_show_other_desk_windows;
|
||||
int list_show_other_screen_windows;
|
||||
int list_uncover_while_selecting;
|
||||
int list_jump_desk_while_selecting;
|
||||
int list_focus_while_selecting;
|
||||
int list_raise_while_selecting;
|
||||
/* basic */
|
||||
int other_desks;
|
||||
int other_screens;
|
||||
int iconified;
|
||||
int animations;
|
||||
|
||||
int focus;
|
||||
int raise;
|
||||
int uncover;
|
||||
int warp;
|
||||
int jump_desk;
|
||||
|
||||
/* Advanced */
|
||||
double scroll_speed;
|
||||
int windows_other_desks;
|
||||
int windows_other_screens;
|
||||
int iconified_other_desks;
|
||||
int iconified_other_screens;
|
||||
|
||||
int warp_while_selecting;
|
||||
int warp_at_end;
|
||||
double warp_speed;
|
||||
double pos_align_x;
|
||||
double pos_align_y;
|
||||
double pos_size_w;
|
||||
double pos_size_h;
|
||||
int pos_min_w;
|
||||
int pos_min_h;
|
||||
int pos_max_w;
|
||||
int pos_max_h;
|
||||
|
||||
int scroll_animate;
|
||||
double scroll_speed;
|
||||
|
||||
double align_x;
|
||||
double align_y;
|
||||
int min_w;
|
||||
int min_h;
|
||||
int max_w;
|
||||
int max_h;
|
||||
|
||||
struct {
|
||||
Eina_List *disable_iconified;
|
||||
Eina_List *disable_scroll_animate;
|
||||
Eina_List *disable_warp;
|
||||
Evas_Object *min_w;
|
||||
Evas_Object *min_h;
|
||||
} gui;
|
||||
};
|
||||
|
||||
Eina_List *iconified_list = NULL;
|
||||
Eina_List *warp_at_end_list = NULL;
|
||||
Eina_List *scroll_animation_list = NULL;
|
||||
|
||||
E_Config_Dialog *
|
||||
e_int_config_winlist(E_Container *con, const char *params __UNUSED__)
|
||||
e_int_config_winlist(E_Container *con, const char *params __UNUSED__)
|
||||
{
|
||||
E_Config_Dialog *cfd;
|
||||
E_Config_Dialog_View *v;
|
||||
|
||||
|
||||
if (e_config_dialog_find("E", "advanced/window_list")) return NULL;
|
||||
v = E_NEW(E_Config_Dialog_View, 1);
|
||||
|
||||
|
||||
v->create_cfdata = _create_data;
|
||||
v->free_cfdata = _free_data;
|
||||
v->basic.apply_cfdata = _basic_apply;
|
||||
v->basic.create_widgets = _basic_create;
|
||||
v->basic.check_changed = _basic_check_changed;
|
||||
v->advanced.apply_cfdata = _advanced_apply;
|
||||
v->advanced.create_widgets = _advanced_create;
|
||||
v->advanced.check_changed = _advanced_check_changed;
|
||||
|
||||
cfd = e_config_dialog_new(con, _("Window List Settings"),
|
||||
"E", "advanced/window_list",
|
||||
|
@ -65,361 +78,474 @@ e_int_config_winlist(E_Container *con, const char *params __UNUSED__)
|
|||
}
|
||||
|
||||
static void
|
||||
_fill_data(E_Config_Dialog_Data *cfdata)
|
||||
_fill_data(E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
cfdata->focus = e_config->winlist_list_focus_while_selecting;
|
||||
cfdata->raise = e_config->winlist_list_raise_while_selecting;
|
||||
cfdata->uncover = e_config->winlist_list_uncover_while_selecting;
|
||||
cfdata->jump_desk = e_config->winlist_list_jump_desk_while_selecting;
|
||||
|
||||
cfdata->windows_other_desks =
|
||||
e_config->winlist_list_show_other_desk_windows;
|
||||
cfdata->windows_other_screens =
|
||||
e_config->winlist_list_show_other_screen_windows;
|
||||
|
||||
cfdata->iconified = e_config->winlist_list_show_iconified;
|
||||
cfdata->iconified_other_desks =
|
||||
e_config->winlist_list_show_other_desk_iconified;
|
||||
cfdata->iconified_other_screens =
|
||||
e_config->winlist_list_show_other_screen_iconified;
|
||||
|
||||
cfdata->warp_while_selecting = e_config->winlist_warp_while_selecting;
|
||||
cfdata->warp_at_end = e_config->winlist_warp_at_end;
|
||||
cfdata->warp_speed = e_config->winlist_warp_speed;
|
||||
|
||||
cfdata->scroll_animate = e_config->winlist_scroll_animate;
|
||||
cfdata->scroll_speed = e_config->winlist_scroll_speed;
|
||||
cfdata->list_show_iconified = e_config->winlist_list_show_iconified;
|
||||
cfdata->list_show_other_desk_iconified =
|
||||
e_config->winlist_list_show_other_desk_iconified;
|
||||
cfdata->list_show_other_screen_iconified =
|
||||
e_config->winlist_list_show_other_screen_iconified;
|
||||
cfdata->list_show_other_desk_windows =
|
||||
e_config->winlist_list_show_other_desk_windows;
|
||||
cfdata->list_show_other_screen_windows =
|
||||
e_config->winlist_list_show_other_screen_windows;
|
||||
cfdata->list_uncover_while_selecting =
|
||||
e_config->winlist_list_uncover_while_selecting;
|
||||
cfdata->list_jump_desk_while_selecting =
|
||||
e_config->winlist_list_jump_desk_while_selecting;
|
||||
cfdata->list_focus_while_selecting =
|
||||
e_config->winlist_list_focus_while_selecting;
|
||||
cfdata->list_raise_while_selecting =
|
||||
e_config->winlist_list_raise_while_selecting;
|
||||
cfdata->pos_align_x = e_config->winlist_pos_align_x;
|
||||
cfdata->pos_align_y = e_config->winlist_pos_align_y;
|
||||
cfdata->pos_size_w = e_config->winlist_pos_size_w;
|
||||
cfdata->pos_size_h = e_config->winlist_pos_size_h;
|
||||
cfdata->pos_min_w = e_config->winlist_pos_min_w;
|
||||
cfdata->pos_min_h = e_config->winlist_pos_min_h;
|
||||
cfdata->pos_max_w = e_config->winlist_pos_max_w;
|
||||
cfdata->pos_max_h = e_config->winlist_pos_max_h;
|
||||
|
||||
cfdata->align_x = e_config->winlist_pos_align_x;
|
||||
cfdata->align_y = e_config->winlist_pos_align_y;
|
||||
cfdata->min_w = e_config->winlist_pos_min_w;
|
||||
cfdata->min_h = e_config->winlist_pos_min_h;
|
||||
cfdata->max_w = e_config->winlist_pos_max_w;
|
||||
cfdata->max_h = e_config->winlist_pos_max_h;
|
||||
|
||||
_sync_advanced_to_basic(cfdata);
|
||||
}
|
||||
|
||||
static void *
|
||||
_create_data(E_Config_Dialog *cfd)
|
||||
_create_data(E_Config_Dialog *cfd __UNUSED__)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata;
|
||||
|
||||
cfdata = E_NEW(E_Config_Dialog_Data, 1);
|
||||
E_Config_Dialog_Data *cfdata = E_NEW(E_Config_Dialog_Data, 1);
|
||||
if (!cfdata) return NULL;
|
||||
_fill_data(cfdata);
|
||||
return cfdata;
|
||||
}
|
||||
|
||||
static void
|
||||
_free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
|
||||
_free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
iconified_list = eina_list_free(iconified_list);
|
||||
warp_at_end_list = eina_list_free(warp_at_end_list);
|
||||
scroll_animation_list = eina_list_free(scroll_animation_list);
|
||||
|
||||
eina_list_free(cfdata->gui.disable_iconified);
|
||||
eina_list_free(cfdata->gui.disable_scroll_animate);
|
||||
eina_list_free(cfdata->gui.disable_warp);
|
||||
E_FREE(cfdata);
|
||||
}
|
||||
|
||||
static int
|
||||
_basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
|
||||
static void
|
||||
_sync_basic_to_advanced(E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
e_config->winlist_list_show_iconified = cfdata->list_show_iconified;
|
||||
e_config->winlist_list_show_other_desk_iconified =
|
||||
cfdata->list_show_other_desk_iconified;
|
||||
e_config->winlist_list_show_other_screen_iconified =
|
||||
cfdata->list_show_other_screen_iconified;
|
||||
e_config->winlist_list_show_other_desk_windows =
|
||||
cfdata->list_show_other_desk_windows;
|
||||
e_config->winlist_list_show_other_screen_windows =
|
||||
cfdata->list_show_other_screen_windows;
|
||||
e_config->winlist_list_uncover_while_selecting =
|
||||
cfdata->list_uncover_while_selecting;
|
||||
e_config->winlist_list_jump_desk_while_selecting =
|
||||
cfdata->list_jump_desk_while_selecting;
|
||||
e_config->winlist_warp_while_selecting = cfdata->warp_while_selecting;
|
||||
e_config->winlist_warp_at_end = cfdata->warp_at_end;
|
||||
e_config->winlist_scroll_animate = cfdata->scroll_animate;
|
||||
e_config->winlist_list_focus_while_selecting =
|
||||
cfdata->list_focus_while_selecting;
|
||||
e_config->winlist_list_raise_while_selecting =
|
||||
cfdata->list_raise_while_selecting;
|
||||
if (cfdata->iconified)
|
||||
{
|
||||
cfdata->iconified_other_desks = cfdata->other_desks;
|
||||
cfdata->iconified_other_screens = cfdata->other_screens;
|
||||
}
|
||||
else
|
||||
{
|
||||
cfdata->iconified_other_desks = EINA_FALSE;
|
||||
cfdata->iconified_other_screens = EINA_FALSE;
|
||||
}
|
||||
|
||||
cfdata->windows_other_desks = cfdata->other_desks;
|
||||
cfdata->windows_other_screens = cfdata->other_screens;
|
||||
|
||||
cfdata->warp_at_end = cfdata->warp;
|
||||
cfdata->warp_while_selecting = cfdata->warp;
|
||||
|
||||
cfdata->scroll_animate = cfdata->animations;
|
||||
if (cfdata->animations)
|
||||
{
|
||||
if (cfdata->scroll_speed <= 0.0)
|
||||
cfdata->scroll_speed = 0.5;
|
||||
if (cfdata->warp_speed <= 0.0)
|
||||
cfdata->warp_speed = 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_sync_advanced_to_basic(E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
cfdata->other_desks =
|
||||
(cfdata->windows_other_desks || cfdata->iconified_other_desks);
|
||||
cfdata->other_screens =
|
||||
(cfdata->windows_other_screens || cfdata->iconified_other_screens);
|
||||
|
||||
cfdata->animations =
|
||||
(cfdata->scroll_animate || (cfdata->warp_speed > 0.0));
|
||||
|
||||
cfdata->warp =
|
||||
(cfdata->warp_while_selecting || cfdata->warp_at_end);
|
||||
}
|
||||
|
||||
static int
|
||||
_basic_apply(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
_sync_basic_to_advanced(cfdata);
|
||||
|
||||
#define DO(_e_config, _cfdata) \
|
||||
e_config->winlist_##_e_config = cfdata->_cfdata
|
||||
|
||||
DO(list_show_iconified, iconified);
|
||||
DO(list_show_other_desk_iconified, iconified_other_desks);
|
||||
DO(list_show_other_screen_iconified, iconified_other_screens);
|
||||
DO(list_show_other_desk_windows, windows_other_desks);
|
||||
DO(list_show_other_screen_windows, windows_other_screens);
|
||||
DO(list_uncover_while_selecting, uncover);
|
||||
DO(list_jump_desk_while_selecting, jump_desk);
|
||||
DO(warp_while_selecting, warp_while_selecting);
|
||||
DO(warp_at_end, warp_at_end);
|
||||
DO(warp_speed, warp_speed);
|
||||
DO(scroll_animate, scroll_animate);
|
||||
DO(scroll_speed, scroll_speed);
|
||||
DO(list_focus_while_selecting, focus);
|
||||
DO(list_raise_while_selecting, raise);
|
||||
#undef DO
|
||||
|
||||
e_config_save_queue();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
_basic_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
int i_other_desks, i_other_screens;
|
||||
|
||||
#define DO(_e_config, _cfdata) \
|
||||
if (e_config->winlist_##_e_config != cfdata->_cfdata) \
|
||||
{ printf("changed " #_cfdata": %f %f\n", (double)e_config->winlist_##_e_config, (double)cfdata->_cfdata); \
|
||||
return 1; \
|
||||
}
|
||||
//return 1
|
||||
|
||||
DO(list_show_iconified, iconified);
|
||||
DO(list_show_other_desk_windows, other_desks);
|
||||
DO(list_show_other_screen_windows, other_screens);
|
||||
DO(list_uncover_while_selecting, uncover);
|
||||
DO(list_jump_desk_while_selecting, jump_desk);
|
||||
DO(warp_while_selecting, warp);
|
||||
DO(warp_at_end, warp);
|
||||
DO(scroll_animate, animations);
|
||||
DO(list_focus_while_selecting, focus);
|
||||
DO(list_raise_while_selecting, raise);
|
||||
#undef DO
|
||||
|
||||
if (cfdata->iconified)
|
||||
{
|
||||
i_other_desks = cfdata->other_desks;
|
||||
i_other_screens = cfdata->other_screens;
|
||||
}
|
||||
else
|
||||
{
|
||||
i_other_desks = EINA_FALSE;
|
||||
i_other_screens = EINA_FALSE;
|
||||
}
|
||||
if (e_config->winlist_list_show_other_desk_iconified != i_other_desks)
|
||||
return 1;
|
||||
if (e_config->winlist_list_show_other_screen_iconified != i_other_screens)
|
||||
return 1;
|
||||
|
||||
if (cfdata->animations)
|
||||
{
|
||||
double scroll_speed, warp_speed;
|
||||
|
||||
scroll_speed = cfdata->scroll_speed;
|
||||
warp_speed = cfdata->warp_speed;
|
||||
|
||||
if (scroll_speed <= 0.0) scroll_speed = 0.5;
|
||||
if (warp_speed <= 0.0) warp_speed = 0.5;
|
||||
|
||||
if (e_config->winlist_scroll_speed != scroll_speed) return 1;
|
||||
if (e_config->winlist_warp_speed != warp_speed) return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static Evas_Object *
|
||||
_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
|
||||
_basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
Evas_Object *o, *of, *ob;
|
||||
Evas_Object *iconified_check;
|
||||
Evas_Object *warp_mouse_check;
|
||||
|
||||
o = e_widget_list_add(evas, 0, 0);
|
||||
|
||||
of = e_widget_framelist_add(evas, _("General Settings"), 0);
|
||||
iconified_check = e_widget_check_add(evas, _("Show iconified windows"),
|
||||
&(cfdata->list_show_iconified));
|
||||
e_widget_framelist_object_append(of, iconified_check);
|
||||
ob = e_widget_check_add(evas, _("Show iconified windows from other desks"),
|
||||
&(cfdata->list_show_other_desk_iconified));
|
||||
iconified_list = eina_list_append (iconified_list, ob);
|
||||
e_widget_disabled_set(ob, !cfdata->list_show_iconified);
|
||||
of = e_widget_framelist_add(evas, _("Display"), 0);
|
||||
ob = e_widget_check_add(evas, _("From other desks"), &(cfdata->other_desks));
|
||||
e_widget_framelist_object_append(of, ob);
|
||||
ob = e_widget_check_add(evas, _("Show iconified windows from other screens"),
|
||||
&(cfdata->list_show_other_screen_iconified));
|
||||
iconified_list = eina_list_append (iconified_list, ob);
|
||||
e_widget_disabled_set(ob, !cfdata->list_show_iconified);
|
||||
ob = e_widget_check_add
|
||||
(evas, _("From other screens"), &(cfdata->other_screens));
|
||||
e_widget_framelist_object_append(of, ob);
|
||||
e_widget_on_change_hook_set(iconified_check, _cb_disable_check_list,
|
||||
iconified_list);
|
||||
ob = e_widget_check_add(evas, _("Show windows from other desks"),
|
||||
&(cfdata->list_show_other_desk_windows));
|
||||
ob = e_widget_check_add(evas, _("Iconified"), &(cfdata->iconified));
|
||||
e_widget_framelist_object_append(of, ob);
|
||||
ob = e_widget_check_add(evas, _("Show windows from other screens"),
|
||||
&(cfdata->list_show_other_screen_windows));
|
||||
ob = e_widget_check_add(evas, _("Animations"), &(cfdata->animations));
|
||||
e_widget_framelist_object_append(of, ob);
|
||||
e_widget_list_object_append(o, of, 1, 1, 0.5);
|
||||
e_widget_list_object_append(o, of, 1, 1, 0.5);
|
||||
|
||||
of = e_widget_framelist_add(evas, _("Selection Settings"), 0);
|
||||
ob = e_widget_check_add(evas, _("Focus window while selecting"),
|
||||
&(cfdata->list_focus_while_selecting));
|
||||
of = e_widget_framelist_add(evas, _("Selecting"), 0);
|
||||
ob = e_widget_check_add(evas, _("Focus"), &(cfdata->focus));
|
||||
e_widget_framelist_object_append(of, ob);
|
||||
ob = e_widget_check_add(evas, _("Raise window while selecting"),
|
||||
&(cfdata->list_raise_while_selecting));
|
||||
ob = e_widget_check_add(evas, _("Raise"), &(cfdata->raise));
|
||||
e_widget_framelist_object_append(of, ob);
|
||||
warp_mouse_check = e_widget_check_add(evas, _("Warp mouse to window while selecting"),
|
||||
&(cfdata->warp_while_selecting));
|
||||
e_widget_framelist_object_append(of, warp_mouse_check);
|
||||
ob = e_widget_check_add(evas, _("Uncover windows while selecting"),
|
||||
&(cfdata->list_uncover_while_selecting));
|
||||
ob = e_widget_check_add(evas, _("Uncover"), &(cfdata->uncover));
|
||||
e_widget_framelist_object_append(of, ob);
|
||||
ob = e_widget_check_add(evas, _("Jump to desk while selecting"),
|
||||
&(cfdata->list_jump_desk_while_selecting));
|
||||
ob = e_widget_check_add(evas, _("Warp mouse"), &(cfdata->warp));
|
||||
e_widget_framelist_object_append(of, ob);
|
||||
e_widget_list_object_append(o, of, 1, 1, 0.5);
|
||||
|
||||
of = e_widget_framelist_add(evas, _("Warp Settings"), 0);
|
||||
ob = e_widget_check_add(evas, _("Warp At End"), &(cfdata->warp_at_end));
|
||||
e_widget_disabled_set(ob, cfdata->warp_while_selecting);
|
||||
e_widget_on_change_hook_set(warp_mouse_check, _cb_enable_check, ob);
|
||||
ob = e_widget_check_add(evas, _("Jump to desk"), &(cfdata->jump_desk));
|
||||
e_widget_framelist_object_append(of, ob);
|
||||
e_widget_list_object_append(o, of, 1, 1, 0.5);
|
||||
|
||||
of = e_widget_framelist_add(evas, _("Scroll Settings"), 0);
|
||||
ob = e_widget_check_add(evas, _("Scroll Animate"), &(cfdata->scroll_animate));
|
||||
e_widget_framelist_object_append(of, ob);
|
||||
e_widget_list_object_append(o, of, 1, 1, 0.5);
|
||||
e_widget_list_object_append(o, of, 1, 1, 0.5);
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
static int
|
||||
_advanced_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
|
||||
_advanced_apply(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
e_config->winlist_list_show_iconified = cfdata->list_show_iconified;
|
||||
e_config->winlist_list_show_other_desk_iconified =
|
||||
cfdata->list_show_other_desk_iconified;
|
||||
e_config->winlist_list_show_other_screen_iconified =
|
||||
cfdata->list_show_other_screen_iconified;
|
||||
e_config->winlist_list_show_other_desk_windows =
|
||||
cfdata->list_show_other_desk_windows;
|
||||
e_config->winlist_list_show_other_screen_windows =
|
||||
cfdata->list_show_other_screen_windows;
|
||||
e_config->winlist_list_uncover_while_selecting =
|
||||
cfdata->list_uncover_while_selecting;
|
||||
e_config->winlist_list_jump_desk_while_selecting =
|
||||
cfdata->list_jump_desk_while_selecting;
|
||||
e_config->winlist_warp_while_selecting = cfdata->warp_while_selecting;
|
||||
e_config->winlist_warp_at_end = cfdata->warp_at_end;
|
||||
e_config->winlist_scroll_animate = cfdata->scroll_animate;
|
||||
e_config->winlist_list_focus_while_selecting =
|
||||
cfdata->list_focus_while_selecting;
|
||||
e_config->winlist_list_raise_while_selecting =
|
||||
cfdata->list_raise_while_selecting;
|
||||
e_config->winlist_warp_speed = cfdata->warp_speed;
|
||||
e_config->winlist_scroll_speed = cfdata->scroll_speed;
|
||||
e_config->winlist_pos_align_x = cfdata->pos_align_x;
|
||||
e_config->winlist_pos_align_y = cfdata->pos_align_y;
|
||||
e_config->winlist_pos_min_w = cfdata->pos_min_w;
|
||||
e_config->winlist_pos_min_h = cfdata->pos_min_h;
|
||||
e_config->winlist_pos_max_w = cfdata->pos_max_w;
|
||||
e_config->winlist_pos_max_h = cfdata->pos_max_h;
|
||||
_sync_advanced_to_basic(cfdata);
|
||||
|
||||
#define DO(_e_config, _cfdata) \
|
||||
e_config->winlist_##_e_config = cfdata->_cfdata
|
||||
|
||||
DO(list_show_iconified, iconified);
|
||||
DO(list_show_other_desk_iconified, iconified_other_desks);
|
||||
DO(list_show_other_screen_iconified, iconified_other_screens);
|
||||
DO(list_show_other_desk_windows, windows_other_desks);
|
||||
DO(list_show_other_screen_windows, windows_other_screens);
|
||||
DO(list_uncover_while_selecting, uncover);
|
||||
DO(list_jump_desk_while_selecting, jump_desk);
|
||||
DO(warp_while_selecting, warp_while_selecting);
|
||||
DO(warp_at_end, warp_at_end);
|
||||
DO(warp_speed, warp_speed);
|
||||
DO(scroll_animate, scroll_animate);
|
||||
DO(scroll_speed, scroll_speed);
|
||||
DO(list_focus_while_selecting, focus);
|
||||
DO(list_raise_while_selecting, raise);
|
||||
DO(pos_align_x, align_x);
|
||||
DO(pos_align_y, align_y);
|
||||
DO(pos_min_w, min_w);
|
||||
DO(pos_min_h, min_h);
|
||||
DO(pos_max_w, max_w);
|
||||
DO(pos_max_h, max_h);
|
||||
#undef DO
|
||||
|
||||
e_config_save_queue();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static Evas_Object *
|
||||
_advanced_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
|
||||
|
||||
static int
|
||||
_advanced_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
Evas_Object *otb, *ol, *ow, *oc;
|
||||
#define DO(_e_config, _cfdata) \
|
||||
if (e_config->winlist_##_e_config != cfdata->_cfdata) \
|
||||
return 1
|
||||
|
||||
DO(list_show_iconified, iconified);
|
||||
DO(list_show_other_desk_iconified, iconified_other_desks);
|
||||
DO(list_show_other_screen_iconified, iconified_other_screens);
|
||||
DO(list_show_other_desk_windows, windows_other_desks);
|
||||
DO(list_show_other_screen_windows, windows_other_screens);
|
||||
DO(list_uncover_while_selecting, uncover);
|
||||
DO(list_jump_desk_while_selecting, jump_desk);
|
||||
DO(warp_while_selecting, warp_while_selecting);
|
||||
DO(warp_at_end, warp_at_end);
|
||||
DO(warp_speed, warp_speed);
|
||||
DO(scroll_animate, scroll_animate);
|
||||
DO(scroll_speed, scroll_speed);
|
||||
DO(list_focus_while_selecting, focus);
|
||||
DO(list_raise_while_selecting, raise);
|
||||
DO(pos_align_x, align_x);
|
||||
DO(pos_align_y, align_y);
|
||||
DO(pos_min_w, min_w);
|
||||
DO(pos_min_h, min_h);
|
||||
DO(pos_max_w, max_w);
|
||||
DO(pos_max_h, max_h);
|
||||
#undef DO
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
_iconified_changed(void *data, Evas_Object *obj)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata = data;
|
||||
const Eina_List *l;
|
||||
Evas_Object *o;
|
||||
Eina_Bool disabled = !e_widget_check_checked_get(obj);
|
||||
|
||||
EINA_LIST_FOREACH(cfdata->gui.disable_iconified, l, o)
|
||||
e_widget_disabled_set(o, disabled);
|
||||
}
|
||||
|
||||
static void
|
||||
_warp_changed(void *data, Evas_Object *obj __UNUSED__)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata = data;
|
||||
const Eina_List *l;
|
||||
Evas_Object *o;
|
||||
Eina_Bool disabled = ((!cfdata->warp_while_selecting) &&
|
||||
(!cfdata->warp_at_end));
|
||||
|
||||
EINA_LIST_FOREACH(cfdata->gui.disable_warp, l, o)
|
||||
e_widget_disabled_set(o, disabled);
|
||||
}
|
||||
|
||||
static void
|
||||
_scroll_animate_changed(void *data, Evas_Object *obj)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata = data;
|
||||
const Eina_List *l;
|
||||
Evas_Object *o;
|
||||
Eina_Bool disabled = !e_widget_check_checked_get(obj);
|
||||
|
||||
EINA_LIST_FOREACH(cfdata->gui.disable_scroll_animate, l, o)
|
||||
e_widget_disabled_set(o, disabled);
|
||||
}
|
||||
|
||||
static void
|
||||
_width_limits_changed(void *data, Evas_Object *obj __UNUSED__)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata = data;
|
||||
if (cfdata->min_w > cfdata->max_w)
|
||||
e_widget_slider_value_int_set(cfdata->gui.min_w, cfdata->max_w);
|
||||
}
|
||||
|
||||
static void
|
||||
_height_limits_changed(void *data, Evas_Object *obj __UNUSED__)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata = data;
|
||||
if (cfdata->min_h > cfdata->max_h)
|
||||
e_widget_slider_value_int_set(cfdata->gui.min_h, cfdata->max_h);
|
||||
}
|
||||
|
||||
static Evas_Object *
|
||||
_advanced_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
Evas_Object *otb, *ol, *ob, *iconified, *scroll_animate;
|
||||
Evas_Coord mw, mh;
|
||||
|
||||
otb = e_widget_toolbook_add(evas, (48 * e_scale), (48 * e_scale));
|
||||
|
||||
ol = e_widget_list_add(evas, 0, 0);
|
||||
oc = e_widget_check_add(evas, _("Show iconified windows"),
|
||||
&(cfdata->list_show_iconified));
|
||||
e_widget_list_object_append(ol, oc, 1, 1, 0.5);
|
||||
ow = e_widget_check_add(evas, _("Show iconified windows from other desks"),
|
||||
&(cfdata->list_show_other_desk_iconified));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
iconified_list = eina_list_append(iconified_list, ow);
|
||||
e_widget_disabled_set(ow, !cfdata->list_show_iconified);
|
||||
|
||||
ow = e_widget_check_add(evas, _("Show iconified windows from other screens"),
|
||||
&(cfdata->list_show_other_screen_iconified));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
iconified_list = eina_list_append(iconified_list, ow);
|
||||
e_widget_disabled_set(ow, !cfdata->list_show_iconified);
|
||||
e_widget_on_change_hook_set(oc, _cb_disable_check_list, iconified_list);
|
||||
|
||||
ow = e_widget_check_add(evas, _("Show windows from other desks"),
|
||||
&(cfdata->list_show_other_desk_windows));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_check_add(evas, _("Show windows from other screens"),
|
||||
&(cfdata->list_show_other_screen_windows));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
e_widget_toolbook_page_append(otb, NULL, _("General Settings"), ol,
|
||||
0, 0, 0, 0, 0.5, 0.0);
|
||||
ob = e_widget_check_add
|
||||
(evas, _("Windows from other desks"), &(cfdata->windows_other_desks));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_check_add
|
||||
(evas, _("Windows from other screens"), &(cfdata->windows_other_screens));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_check_add(evas, _("Iconified"), &(cfdata->iconified));
|
||||
iconified = ob;
|
||||
e_widget_on_change_hook_set(ob, _iconified_changed, cfdata);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_check_add
|
||||
(evas, _("Iconified from other desks"), &(cfdata->iconified_other_desks));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
cfdata->gui.disable_iconified = eina_list_append
|
||||
(cfdata->gui.disable_iconified, ob);
|
||||
ob = e_widget_check_add
|
||||
(evas, _("Iconified from other screens"),
|
||||
&(cfdata->iconified_other_screens));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
cfdata->gui.disable_iconified = eina_list_append
|
||||
(cfdata->gui.disable_iconified, ob);
|
||||
e_widget_toolbook_page_append
|
||||
(otb, NULL, _("Display"), ol, 0, 0, 1, 0, 0.5, 0.0);
|
||||
|
||||
ol = e_widget_list_add(evas, 0, 0);
|
||||
ow = e_widget_check_add(evas, _("Focus window while selecting"),
|
||||
&(cfdata->list_focus_while_selecting));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_check_add(evas, _("Raise window while selecting"),
|
||||
&(cfdata->list_raise_while_selecting));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_check_add(evas, _("Warp mouse to window while selecting"),
|
||||
&(cfdata->warp_while_selecting));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_check_add(evas, _("Uncover windows while selecting"),
|
||||
&(cfdata->list_uncover_while_selecting));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_check_add(evas, _("Jump to desk while selecting"),
|
||||
&(cfdata->list_jump_desk_while_selecting));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
e_widget_toolbook_page_append(otb, NULL, _("Selection Settings"), ol,
|
||||
0, 0, 0, 0, 0.5, 0.0);
|
||||
ob = e_widget_check_add(evas, _("Focus"), &(cfdata->focus));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_check_add(evas, _("Raise"), &(cfdata->raise));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_check_add(evas, _("Uncover"), &(cfdata->uncover));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_check_add
|
||||
(evas, _("Warp mouse while selecting"), &(cfdata->warp_while_selecting));
|
||||
e_widget_on_change_hook_set(ob, _warp_changed, cfdata);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_check_add
|
||||
(evas, _("Warp mouse at end"), &(cfdata->warp_at_end));
|
||||
e_widget_on_change_hook_set(ob, _warp_changed, cfdata);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_check_add(evas, _("Jump to desk"), &(cfdata->jump_desk));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
e_widget_toolbook_page_append
|
||||
(otb, NULL, _("Selecting"), ol, 0, 0, 1, 0, 0.5, 0.0);
|
||||
|
||||
ol = e_widget_list_add(evas, 0, 0);
|
||||
oc = e_widget_check_add(evas, _("Warp At End"), &(cfdata->warp_at_end));
|
||||
e_widget_list_object_append(ol, oc, 1, 1, 0.5);
|
||||
ow = e_widget_label_add(evas, _("Warp Speed"));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
warp_at_end_list = eina_list_append(warp_at_end_list, ow);
|
||||
e_widget_disabled_set(ow, !cfdata->warp_at_end);
|
||||
|
||||
ow = e_widget_slider_add(evas, 1, 0, _("%1.2f"), 0.0, 1.0, 0.01, 0,
|
||||
&(cfdata->warp_speed), NULL, 100);
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
warp_at_end_list = eina_list_append (warp_at_end_list, ow);
|
||||
e_widget_disabled_set(ow, !cfdata->warp_at_end);
|
||||
e_widget_on_change_hook_set(oc, _cb_disable_check_list, warp_at_end_list);
|
||||
e_widget_toolbook_page_append(otb, NULL, _("Warp Settings"), ol,
|
||||
0, 0, 0, 0, 0.5, 0.0);
|
||||
ob = e_widget_label_add(evas, _("Warp speed"));
|
||||
cfdata->gui.disable_warp = eina_list_append
|
||||
(cfdata->gui.disable_warp, ob);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_slider_add
|
||||
(evas, 1, 0, _("%1.2f"), 0.0, 1.0, 0.01, 0,
|
||||
&(cfdata->warp_speed), NULL, 100);
|
||||
cfdata->gui.disable_warp = eina_list_append
|
||||
(cfdata->gui.disable_warp, ob);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_check_add
|
||||
(evas, _("Scroll Animation"), &(cfdata->scroll_animate));
|
||||
e_widget_on_change_hook_set(ob, _scroll_animate_changed, cfdata);
|
||||
scroll_animate = ob;
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_label_add(evas, _("Scroll speed"));
|
||||
cfdata->gui.disable_scroll_animate = eina_list_append
|
||||
(cfdata->gui.disable_scroll_animate, ob);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_slider_add
|
||||
(evas, 1, 0, _("%1.2f"), 0.0, 1.0, 0.01, 0,
|
||||
&(cfdata->scroll_speed), NULL, 100);
|
||||
cfdata->gui.disable_scroll_animate = eina_list_append
|
||||
(cfdata->gui.disable_scroll_animate, ob);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
e_widget_toolbook_page_append
|
||||
(otb, NULL, _("Animations"), ol, 0, 0, 1, 0, 0.5, 0.0);
|
||||
|
||||
ol = e_widget_list_add(evas, 0, 0);
|
||||
oc = e_widget_check_add(evas, _("Scroll Animate"), &(cfdata->scroll_animate));
|
||||
e_widget_list_object_append(ol, oc, 1, 1, 0.5);
|
||||
ow = e_widget_label_add(evas, _("Scroll Speed"));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
e_widget_disabled_set(ow, !cfdata->scroll_animate);
|
||||
scroll_animation_list = eina_list_append(scroll_animation_list , ow);
|
||||
ow = e_widget_slider_add(evas, 1, 0, _("%1.2f"), 0.0, 1.0, 0.01, 0,
|
||||
&(cfdata->scroll_speed), NULL, 100);
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
e_widget_disabled_set(ow, !cfdata->scroll_animate);
|
||||
scroll_animation_list = eina_list_append(scroll_animation_list , ow);
|
||||
e_widget_on_change_hook_set(oc, _cb_disable_check_list, scroll_animation_list);
|
||||
ob = e_widget_label_add(evas, _("Horizontal alignment"));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_slider_add
|
||||
(evas, 1, 0, _("%1.2f"), 0.0, 1.0, 0.01, 0, &(cfdata->align_x), NULL, 100);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_label_add(evas, _("Vertical alignment"));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_slider_add
|
||||
(evas, 1, 0, _("%1.2f"), 0.0, 1.0, 0.01, 0, &(cfdata->align_y), NULL, 100);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_label_add(evas, _("Minimum width"));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_slider_add
|
||||
(evas, 1, 0, _("%4.0f"), 0, 4000, 10, 0, NULL, &(cfdata->min_w), 100);
|
||||
cfdata->gui.min_w = ob;
|
||||
e_widget_on_change_hook_set(ob, _width_limits_changed, cfdata);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_label_add(evas, _("Maximum width"));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_slider_add
|
||||
(evas, 1, 0, _("%4.0f"), 0, 4000, 10, 0, NULL, &(cfdata->max_w), 100);
|
||||
e_widget_on_change_hook_set(ob, _width_limits_changed, cfdata);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_label_add(evas, _("Minimum height"));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_slider_add
|
||||
(evas, 1, 0, _("%4.0f"), 0, 4000, 10, 0, NULL, &(cfdata->min_h), 100);
|
||||
cfdata->gui.min_h = ob;
|
||||
e_widget_on_change_hook_set(ob, _height_limits_changed, cfdata);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_label_add(evas, _("Maximum height"));
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
ob = e_widget_slider_add
|
||||
(evas, 1, 0, _("%4.0f"), 0, 4000, 10, 0, NULL, &(cfdata->max_h), 100);
|
||||
e_widget_on_change_hook_set(ob, _height_limits_changed, cfdata);
|
||||
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
|
||||
e_widget_toolbook_page_append
|
||||
(otb, NULL, _("Geometry"), ol, 0, 0, 1, 0, 0.5, 0.0);
|
||||
|
||||
e_widget_toolbook_page_append(otb, NULL, _("Scroll Settings"), ol,
|
||||
0, 0, 0, 0, 0.5, 0.0);
|
||||
|
||||
ol = e_widget_list_add(evas, 0, 0);
|
||||
ow = e_widget_label_add(evas, _("X-Axis Alignment"));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_slider_add(evas, 1, 0, _("%1.2f"), 0.0, 1.0, 0.01, 0,
|
||||
&(cfdata->pos_align_x), NULL, 100);
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_label_add(evas, _("Y-Axis Alignment"));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_slider_add(evas, 1, 0, _("%1.2f"), 0.0, 1.0, 0.01, 0,
|
||||
&(cfdata->pos_align_y), NULL, 100);
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
e_widget_toolbook_page_append(otb, NULL, _("Position Settings"), ol,
|
||||
0, 0, 0, 0, 0.5, 0.0);
|
||||
|
||||
ol = e_widget_list_add(evas, 0, 0);
|
||||
ow = e_widget_label_add(evas, _("Minimum Width"));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_slider_add(evas, 1, 0, _("%4.0f"), 0, 4000, 50, 0, NULL,
|
||||
&(cfdata->pos_min_w), 100);
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_label_add(evas, _("Minimum Height"));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_slider_add(evas, 1, 0, _("%4.0f"), 0, 4000, 50, 0, NULL,
|
||||
&(cfdata->pos_min_h), 100);
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_label_add(evas, _("Maximum Width"));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_slider_add(evas, 1, 0, _("%4.0f"), 0, 4000, 50, 0, NULL,
|
||||
&(cfdata->pos_max_w), 100);
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_label_add(evas, _("Maximum Height"));
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
ow = e_widget_slider_add(evas, 1, 0, _("%4.0f"), 0, 4000, 50, 0, NULL,
|
||||
&(cfdata->pos_max_h), 100);
|
||||
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
||||
e_widget_toolbook_page_append(otb, NULL, _("Size Settings"), ol,
|
||||
0, 0, 0, 0, 0.5, 0.0);
|
||||
_iconified_changed(cfdata, iconified);
|
||||
_warp_changed(cfdata, NULL);
|
||||
_scroll_animate_changed(cfdata, scroll_animate);
|
||||
|
||||
e_widget_toolbook_page_show(otb, 0);
|
||||
|
||||
e_widget_size_min_get(otb, &mw, &mh);
|
||||
if (mw < 200 * e_scale) e_widget_size_min_set(otb, 200 * e_scale, mh);
|
||||
|
||||
return otb;
|
||||
}
|
||||
|
||||
/*!
|
||||
* If the check is disabled then disable the chained object.
|
||||
*
|
||||
* @param data A Evas_Object to chain together with the checkbox
|
||||
* @param obj A Evas_Object checkbox created with e_widget_check_add()
|
||||
*/
|
||||
#if 0
|
||||
/* FIXME unused */
|
||||
static void
|
||||
_cb_disable_check(void *data, Evas_Object *obj)
|
||||
{
|
||||
e_widget_disabled_set((Evas_Object *) data,
|
||||
!e_widget_check_checked_get(obj));
|
||||
}
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* If the check is disabled then enable the chained object.
|
||||
*
|
||||
* @param data A Evas_Object to chain together with the checkbox
|
||||
* @param obj A Evas_Object checkbox created with e_widget_check_add()
|
||||
*/
|
||||
static void
|
||||
_cb_enable_check(void *data, Evas_Object *obj)
|
||||
{
|
||||
e_widget_disabled_set((Evas_Object *) data,
|
||||
e_widget_check_checked_get(obj));
|
||||
}
|
||||
|
||||
/*!
|
||||
* * If the check is disabled then disable the chained objects in the list.
|
||||
*
|
||||
* @param data A Eina_List of Evas_Object to chain widgets together with the checkbox
|
||||
* @param obj A Evas_Object checkbox created with e_widget_check_add()
|
||||
*/
|
||||
static void
|
||||
_cb_disable_check_list(void *data, Evas_Object *obj)
|
||||
{
|
||||
Eina_List *list = (Eina_List*) data;
|
||||
Eina_List *l;
|
||||
Evas_Object *o;
|
||||
|
||||
EINA_LIST_FOREACH(list, l, o)
|
||||
e_widget_disabled_set(o, !e_widget_check_checked_get(obj));
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ e_modapi_init(E_Module *m)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
e_modapi_shutdown(E_Module *m)
|
||||
e_modapi_shutdown(E_Module *m __UNUSED__)
|
||||
{
|
||||
E_Config_Dialog *cfd;
|
||||
while ((cfd = e_config_dialog_get("E", "advanced/window_list"))) e_object_del(E_OBJECT(cfd));
|
||||
|
@ -36,7 +36,7 @@ e_modapi_shutdown(E_Module *m)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
e_modapi_save(E_Module *m)
|
||||
e_modapi_save(E_Module *m __UNUSED__)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue