2005-11-18 22:10:52 -08:00
|
|
|
#include "e.h"
|
|
|
|
|
2012-10-11 06:23:14 -07:00
|
|
|
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);
|
2010-07-28 12:47:45 -07:00
|
|
|
static Evas_Object *_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
2012-10-11 06:23:14 -07:00
|
|
|
static void _cb_disable_check(void *data, Evas_Object *obj);
|
|
|
|
static void _cb_disable_check_list(void *data, Evas_Object *obj);
|
2005-11-18 22:10:52 -08:00
|
|
|
|
2006-01-14 08:05:35 -08:00
|
|
|
struct _E_Config_Dialog_Data
|
2005-11-18 22:10:52 -08:00
|
|
|
{
|
2012-10-11 06:23:14 -07:00
|
|
|
int move_info_visible;
|
|
|
|
int move_info_follows;
|
|
|
|
int resize_info_visible;
|
|
|
|
int resize_info_follows;
|
|
|
|
int border_shade_animate;
|
|
|
|
int border_shade_transition;
|
|
|
|
double border_shade_speed;
|
|
|
|
int use_app_icon;
|
|
|
|
int window_placement_policy;
|
|
|
|
int window_grouping;
|
|
|
|
int desk_auto_switch;
|
|
|
|
int window_out_of_vscreen_limits;
|
|
|
|
int window_out_of_vscreen_limits_partly;
|
2005-11-18 22:10:52 -08:00
|
|
|
|
2010-03-03 16:36:02 -08:00
|
|
|
Eina_List *shading_list;
|
|
|
|
};
|
2009-04-14 12:54:21 -07:00
|
|
|
|
2005-11-18 22:10:52 -08:00
|
|
|
/* a nice easy setup function that does the dirty work */
|
2010-01-22 12:28:39 -08:00
|
|
|
E_Config_Dialog *
|
2007-07-24 11:47:26 -07:00
|
|
|
e_int_config_window_display(E_Container *con, const char *params __UNUSED__)
|
2005-11-18 22:10:52 -08:00
|
|
|
{
|
|
|
|
E_Config_Dialog *cfd;
|
2006-01-22 06:17:43 -08:00
|
|
|
E_Config_Dialog_View *v;
|
2007-12-30 10:33:34 -08:00
|
|
|
|
2009-12-04 14:37:18 -08:00
|
|
|
if (e_config_dialog_find("E", "windows/window_display")) return NULL;
|
2006-02-03 17:07:04 -08:00
|
|
|
v = E_NEW(E_Config_Dialog_View, 1);
|
2007-12-30 10:33:34 -08:00
|
|
|
|
2005-11-18 22:10:52 -08:00
|
|
|
/* methods */
|
2009-12-02 20:42:53 -08:00
|
|
|
v->create_cfdata = _create_data;
|
|
|
|
v->free_cfdata = _free_data;
|
2010-07-28 12:47:45 -07:00
|
|
|
v->basic.apply_cfdata = _basic_apply;
|
|
|
|
v->basic.create_widgets = _basic_create;
|
2010-03-03 16:36:02 -08:00
|
|
|
v->basic.check_changed = _basic_check_changed;
|
2009-12-02 20:42:53 -08:00
|
|
|
|
2005-11-18 22:10:52 -08:00
|
|
|
/* create config diaolg for NULL object/data */
|
2010-07-28 12:47:45 -07:00
|
|
|
cfd = e_config_dialog_new(con, _("Window Display"),
|
2012-10-11 06:23:14 -07:00
|
|
|
"E", "windows/window_display",
|
|
|
|
"preferences-system-windows", 0, v, NULL);
|
2005-11-18 22:10:52 -08:00
|
|
|
return cfd;
|
|
|
|
}
|
|
|
|
|
2010-03-03 16:36:02 -08:00
|
|
|
static void *
|
|
|
|
_create_data(E_Config_Dialog *cfd __UNUSED__)
|
2005-11-18 22:10:52 -08:00
|
|
|
{
|
2010-07-28 12:47:45 -07:00
|
|
|
E_Config_Dialog_Data *cfdata;
|
|
|
|
|
|
|
|
cfdata = E_NEW(E_Config_Dialog_Data, 1);
|
2010-03-03 16:36:02 -08:00
|
|
|
if (!cfdata) return NULL;
|
2005-11-18 22:10:52 -08:00
|
|
|
cfdata->move_info_visible = e_config->move_info_visible;
|
|
|
|
cfdata->move_info_follows = e_config->move_info_follows;
|
|
|
|
cfdata->resize_info_visible = e_config->resize_info_visible;
|
|
|
|
cfdata->resize_info_follows = e_config->resize_info_follows;
|
2010-03-03 16:36:02 -08:00
|
|
|
cfdata->use_app_icon = e_config->use_app_icon;
|
|
|
|
|
2012-10-11 06:23:14 -07:00
|
|
|
cfdata->window_placement_policy =
|
2010-07-28 12:47:45 -07:00
|
|
|
e_config->window_placement_policy;
|
2012-07-14 11:00:57 -07:00
|
|
|
cfdata->window_grouping = e_config->window_grouping;
|
2010-03-03 16:36:02 -08:00
|
|
|
cfdata->desk_auto_switch = e_config->desk_auto_switch;
|
|
|
|
|
2012-10-11 05:53:15 -07:00
|
|
|
cfdata->window_out_of_vscreen_limits = e_config->window_out_of_vscreen_limits;
|
|
|
|
cfdata->window_out_of_vscreen_limits_partly = e_config->window_out_of_vscreen_limits_partly;
|
|
|
|
|
2005-11-18 22:10:52 -08:00
|
|
|
cfdata->border_shade_animate = e_config->border_shade_animate;
|
|
|
|
cfdata->border_shade_transition = e_config->border_shade_transition;
|
|
|
|
cfdata->border_shade_speed = e_config->border_shade_speed;
|
|
|
|
|
|
|
|
return cfdata;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-03-03 16:36:02 -08:00
|
|
|
_free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
2005-11-18 22:10:52 -08:00
|
|
|
{
|
2010-03-03 16:36:02 -08:00
|
|
|
eina_list_free(cfdata->shading_list);
|
2007-01-15 09:43:19 -08:00
|
|
|
E_FREE(cfdata);
|
2005-11-18 22:10:52 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
2010-07-28 12:47:45 -07:00
|
|
|
_basic_apply(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
2005-11-18 22:10:52 -08:00
|
|
|
{
|
|
|
|
e_config->window_placement_policy = cfdata->window_placement_policy;
|
2012-07-14 11:00:57 -07:00
|
|
|
e_config->window_grouping = cfdata->window_grouping;
|
2005-11-18 22:10:52 -08:00
|
|
|
e_config->move_info_visible = cfdata->move_info_visible;
|
|
|
|
e_config->move_info_follows = cfdata->move_info_follows;
|
|
|
|
e_config->resize_info_visible = cfdata->resize_info_visible;
|
|
|
|
e_config->resize_info_follows = cfdata->resize_info_follows;
|
|
|
|
e_config->border_shade_animate = cfdata->border_shade_animate;
|
|
|
|
e_config->border_shade_transition = cfdata->border_shade_transition;
|
|
|
|
e_config->border_shade_speed = cfdata->border_shade_speed;
|
2006-01-31 00:02:18 -08:00
|
|
|
e_config->use_app_icon = cfdata->use_app_icon;
|
2010-03-03 16:36:02 -08:00
|
|
|
|
2007-01-07 15:45:35 -08:00
|
|
|
e_config->desk_auto_switch = cfdata->desk_auto_switch;
|
2012-10-11 05:53:15 -07:00
|
|
|
|
|
|
|
e_config->window_out_of_vscreen_limits = cfdata->window_out_of_vscreen_limits;
|
|
|
|
e_config->window_out_of_vscreen_limits_partly = cfdata->window_out_of_vscreen_limits_partly;
|
2005-11-18 22:10:52 -08:00
|
|
|
e_config_save_queue();
|
2010-03-03 16:36:02 -08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
2010-07-28 12:47:45 -07:00
|
|
|
_basic_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
2010-03-03 16:36:02 -08:00
|
|
|
{
|
2012-10-11 06:23:14 -07:00
|
|
|
return (e_config->window_placement_policy != cfdata->window_placement_policy) ||
|
|
|
|
(e_config->window_grouping != cfdata->window_grouping) ||
|
|
|
|
(e_config->move_info_visible != cfdata->move_info_visible) ||
|
|
|
|
(e_config->move_info_follows != cfdata->move_info_follows) ||
|
|
|
|
(e_config->resize_info_visible != cfdata->resize_info_visible) ||
|
|
|
|
(e_config->resize_info_follows != cfdata->resize_info_follows) ||
|
|
|
|
(e_config->border_shade_animate != cfdata->border_shade_animate) ||
|
|
|
|
(e_config->border_shade_transition != cfdata->border_shade_transition) ||
|
|
|
|
(e_config->border_shade_speed != cfdata->border_shade_speed) ||
|
|
|
|
(e_config->use_app_icon != cfdata->use_app_icon) ||
|
|
|
|
(e_config->desk_auto_switch != cfdata->desk_auto_switch) ||
|
2012-10-11 05:53:15 -07:00
|
|
|
(e_config->window_out_of_vscreen_limits != cfdata->window_out_of_vscreen_limits) ||
|
2012-10-11 06:23:14 -07:00
|
|
|
(e_config->window_out_of_vscreen_limits_partly != cfdata->window_out_of_vscreen_limits_partly);
|
2005-11-18 22:10:52 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
static Evas_Object *
|
2010-07-28 12:47:45 -07:00
|
|
|
_basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data *cfdata)
|
2005-11-18 22:10:52 -08:00
|
|
|
{
|
2010-07-28 12:47:45 -07:00
|
|
|
Evas_Object *otb, *ol, *of, *ow, *oc;
|
2005-11-18 22:10:52 -08:00
|
|
|
E_Radio_Group *rg;
|
2007-12-30 10:33:34 -08:00
|
|
|
|
2010-07-28 12:47:45 -07:00
|
|
|
otb = e_widget_toolbook_add(evas, (24 * e_scale), (24 * e_scale));
|
2010-03-03 16:36:02 -08:00
|
|
|
|
2010-07-28 12:47:45 -07:00
|
|
|
/* Display */
|
2010-03-03 16:36:02 -08:00
|
|
|
ol = e_widget_list_add(evas, 0, 0);
|
2012-06-26 16:10:40 -07:00
|
|
|
of = e_widget_framelist_add(evas, _("Border Icon"), 0);
|
|
|
|
rg = e_widget_radio_group_new(&(cfdata->use_app_icon));
|
|
|
|
ow = e_widget_radio_add(evas, _("User defined"), 0, rg);
|
|
|
|
e_widget_framelist_object_append(of, ow);
|
|
|
|
ow = e_widget_radio_add(evas, _("Application provided"), 1, rg);
|
|
|
|
e_widget_framelist_object_append(of, ow);
|
|
|
|
e_widget_list_object_append(ol, of, 1, 1, 0.5);
|
|
|
|
|
2010-03-03 16:36:02 -08:00
|
|
|
of = e_widget_framelist_add(evas, _("Move Geometry"), 0);
|
2012-10-11 06:23:14 -07:00
|
|
|
oc = e_widget_check_add(evas, _("Display information"),
|
2010-07-28 12:47:45 -07:00
|
|
|
&(cfdata->move_info_visible));
|
|
|
|
e_widget_framelist_object_append(of, oc);
|
2012-10-11 06:23:14 -07:00
|
|
|
ow = e_widget_check_add(evas, _("Follows the window"),
|
2010-07-28 12:47:45 -07:00
|
|
|
&(cfdata->move_info_follows));
|
|
|
|
e_widget_disabled_set(ow, !cfdata->move_info_visible);
|
|
|
|
e_widget_on_change_hook_set(oc, _cb_disable_check, ow);
|
|
|
|
e_widget_framelist_object_append(of, ow);
|
2010-03-03 16:36:02 -08:00
|
|
|
e_widget_list_object_append(ol, of, 1, 1, 0.5);
|
2007-12-30 10:33:34 -08:00
|
|
|
|
2010-03-03 16:36:02 -08:00
|
|
|
of = e_widget_framelist_add(evas, _("Resize Geometry"), 0);
|
2012-10-11 06:23:14 -07:00
|
|
|
oc = e_widget_check_add(evas, _("Display information"),
|
2010-07-28 12:47:45 -07:00
|
|
|
&(cfdata->resize_info_visible));
|
|
|
|
e_widget_framelist_object_append(of, oc);
|
2012-10-11 06:23:14 -07:00
|
|
|
ow = e_widget_check_add(evas, _("Follows the window"),
|
2010-07-28 12:47:45 -07:00
|
|
|
&(cfdata->resize_info_follows));
|
|
|
|
e_widget_disabled_set(ow, !cfdata->resize_info_visible);
|
|
|
|
e_widget_on_change_hook_set(oc, _cb_disable_check, ow);
|
|
|
|
e_widget_framelist_object_append(of, ow);
|
2010-03-03 16:36:02 -08:00
|
|
|
e_widget_list_object_append(ol, of, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
e_widget_toolbook_page_append(otb, NULL, _("Display"), ol,
|
2010-07-28 12:47:45 -07:00
|
|
|
0, 0, 1, 0, 0.5, 0.0);
|
2010-03-03 16:36:02 -08:00
|
|
|
|
2010-07-28 12:47:45 -07:00
|
|
|
/* New Windows */
|
2010-03-03 16:36:02 -08:00
|
|
|
ol = e_widget_list_add(evas, 0, 0);
|
|
|
|
of = e_widget_framelist_add(evas, _("Placement"), 0);
|
2006-02-26 11:56:27 -08:00
|
|
|
rg = e_widget_radio_group_new(&(cfdata->window_placement_policy));
|
2012-10-11 06:23:14 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Smart Placement"),
|
2010-07-28 12:47:45 -07:00
|
|
|
E_WINDOW_PLACEMENT_SMART, rg);
|
|
|
|
e_widget_framelist_object_append(of, ow);
|
2012-10-11 06:23:14 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Don't hide Gadgets"),
|
2010-07-28 12:47:45 -07:00
|
|
|
E_WINDOW_PLACEMENT_ANTIGADGET, rg);
|
|
|
|
e_widget_framelist_object_append(of, ow);
|
2012-10-11 06:23:14 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Place at mouse pointer"),
|
2010-07-28 12:47:45 -07:00
|
|
|
E_WINDOW_PLACEMENT_CURSOR, rg);
|
|
|
|
e_widget_framelist_object_append(of, ow);
|
2012-10-11 06:23:14 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Place manually with the mouse"),
|
2010-07-28 12:47:45 -07:00
|
|
|
E_WINDOW_PLACEMENT_MANUAL, rg);
|
|
|
|
e_widget_framelist_object_append(of, ow);
|
2012-10-11 06:23:14 -07:00
|
|
|
ow = e_widget_check_add(evas, _("Group with windows of the same application"),
|
2012-07-14 11:00:57 -07:00
|
|
|
&(cfdata->window_grouping));
|
|
|
|
e_widget_framelist_object_append(of, ow);
|
2010-03-03 16:36:02 -08:00
|
|
|
e_widget_list_object_append(ol, of, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
ow = e_widget_check_add(evas, _("Switch to desktop of new window"),
|
2010-07-28 12:47:45 -07:00
|
|
|
&(cfdata->desk_auto_switch));
|
|
|
|
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
e_widget_toolbook_page_append(otb, NULL, _("New Windows"), ol,
|
2010-07-28 12:47:45 -07:00
|
|
|
0, 0, 1, 0, 0.5, 0.0);
|
2007-12-30 10:33:34 -08:00
|
|
|
|
2010-07-28 12:47:45 -07:00
|
|
|
/* Shading */
|
2010-03-03 16:36:02 -08:00
|
|
|
ol = e_widget_list_add(evas, 0, 0);
|
2012-10-11 06:23:14 -07:00
|
|
|
oc = e_widget_check_add(evas, _("Animate"),
|
2010-07-28 12:47:45 -07:00
|
|
|
&(cfdata->border_shade_animate));
|
|
|
|
e_widget_list_object_append(ol, oc, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
ow = e_widget_slider_add(evas, 1, 0, _("%4.0f pixels/s"),
|
|
|
|
100, 9900, 100, 0,
|
2010-07-28 12:47:45 -07:00
|
|
|
&(cfdata->border_shade_speed), NULL, 100);
|
|
|
|
e_widget_disabled_set(ow, !cfdata->border_shade_animate);
|
|
|
|
cfdata->shading_list = eina_list_append(cfdata->shading_list, ow);
|
|
|
|
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
2010-03-03 16:36:02 -08:00
|
|
|
|
|
|
|
rg = e_widget_radio_group_new(&(cfdata->border_shade_transition));
|
2012-10-11 06:23:14 -07:00
|
|
|
|
2010-07-28 12:47:45 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Linear"), E_TRANSITION_LINEAR, rg);
|
|
|
|
e_widget_disabled_set(ow, !cfdata->border_shade_animate);
|
|
|
|
cfdata->shading_list = eina_list_append(cfdata->shading_list, ow);
|
|
|
|
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
|
2011-06-18 07:38:54 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Accelerate, then decelerate"), E_TRANSITION_SINUSOIDAL, rg);
|
2010-07-28 12:47:45 -07:00
|
|
|
e_widget_disabled_set(ow, !cfdata->border_shade_animate);
|
|
|
|
cfdata->shading_list = eina_list_append(cfdata->shading_list, ow);
|
|
|
|
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
|
2010-07-28 12:47:45 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Accelerate"), E_TRANSITION_ACCELERATE, rg);
|
|
|
|
e_widget_disabled_set(ow, !cfdata->border_shade_animate);
|
|
|
|
cfdata->shading_list = eina_list_append(cfdata->shading_list, ow);
|
|
|
|
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
|
2010-07-28 12:47:45 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Decelerate"), E_TRANSITION_DECELERATE, rg);
|
|
|
|
e_widget_disabled_set(ow, !cfdata->border_shade_animate);
|
|
|
|
cfdata->shading_list = eina_list_append(cfdata->shading_list, ow);
|
|
|
|
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
|
2011-06-18 07:38:54 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Pronounced Accelerate"), E_TRANSITION_ACCELERATE_LOTS, rg);
|
|
|
|
e_widget_disabled_set(ow, !cfdata->border_shade_animate);
|
|
|
|
cfdata->shading_list = eina_list_append(cfdata->shading_list, ow);
|
|
|
|
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
|
2011-06-18 07:38:54 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Pronounced Decelerate"), E_TRANSITION_DECELERATE_LOTS, rg);
|
|
|
|
e_widget_disabled_set(ow, !cfdata->border_shade_animate);
|
|
|
|
cfdata->shading_list = eina_list_append(cfdata->shading_list, ow);
|
|
|
|
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
|
2012-07-08 07:59:55 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Pronounced Accelerate, then decelerate"), E_TRANSITION_SINUSOIDAL_LOTS, rg);
|
2011-06-18 07:38:54 -07:00
|
|
|
e_widget_disabled_set(ow, !cfdata->border_shade_animate);
|
|
|
|
cfdata->shading_list = eina_list_append(cfdata->shading_list, ow);
|
|
|
|
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
|
2011-06-18 07:38:54 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Bounce"), E_TRANSITION_BOUNCE, rg);
|
|
|
|
e_widget_disabled_set(ow, !cfdata->border_shade_animate);
|
|
|
|
cfdata->shading_list = eina_list_append(cfdata->shading_list, ow);
|
|
|
|
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
|
2011-06-18 07:38:54 -07:00
|
|
|
ow = e_widget_radio_add(evas, _("Bounce more"), E_TRANSITION_BOUNCE_LOTS, rg);
|
|
|
|
e_widget_disabled_set(ow, !cfdata->border_shade_animate);
|
|
|
|
cfdata->shading_list = eina_list_append(cfdata->shading_list, ow);
|
|
|
|
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
|
2012-10-11 06:23:14 -07:00
|
|
|
|
|
|
|
e_widget_toolbook_page_append(otb, NULL, _("Shading"), ol,
|
2010-07-28 12:47:45 -07:00
|
|
|
0, 0, 1, 0, 0.5, 0.0);
|
|
|
|
|
2012-10-11 06:23:14 -07:00
|
|
|
e_widget_on_change_hook_set(oc, _cb_disable_check_list,
|
2010-07-28 12:47:45 -07:00
|
|
|
cfdata->shading_list);
|
2012-10-11 05:53:15 -07:00
|
|
|
/* Screen Limits */
|
|
|
|
ol = e_widget_list_add(evas, 0, 0);
|
|
|
|
|
2012-10-11 06:23:14 -07:00
|
|
|
oc = e_widget_check_add(evas, _("Allow windows out of visual screen limits"),
|
2012-10-11 05:53:15 -07:00
|
|
|
&(cfdata->window_out_of_vscreen_limits));
|
|
|
|
e_widget_list_object_append(ol, oc, 1, 1, 0.5);
|
|
|
|
|
2012-10-25 06:00:12 -07:00
|
|
|
oc = e_widget_check_add(evas, _("Keep windows within the visual screen limits"),
|
2012-10-11 05:53:15 -07:00
|
|
|
&(cfdata->window_out_of_vscreen_limits_partly));
|
|
|
|
e_widget_list_object_append(ol, oc, 1, 1, 0.5);
|
|
|
|
|
2012-10-11 06:23:14 -07:00
|
|
|
e_widget_toolbook_page_append(otb, NULL, _("Screen Limits"), ol,
|
2012-10-11 05:53:15 -07:00
|
|
|
0, 0, 1, 0, 0.5, 0.0);
|
2010-03-03 16:36:02 -08:00
|
|
|
|
|
|
|
e_widget_toolbook_page_show(otb, 0);
|
|
|
|
return otb;
|
2005-11-18 22:10:52 -08:00
|
|
|
}
|
2009-04-14 12:54:21 -07:00
|
|
|
|
|
|
|
static void
|
|
|
|
_cb_disable_check(void *data, Evas_Object *obj)
|
|
|
|
{
|
2010-03-03 16:36:02 -08:00
|
|
|
e_widget_disabled_set(data, !e_widget_check_checked_get(obj));
|
2009-04-14 12:54:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
_cb_disable_check_list(void *data, Evas_Object *obj)
|
|
|
|
{
|
2010-03-03 16:36:02 -08:00
|
|
|
Eina_List *list = data;
|
|
|
|
const Eina_List *l;
|
2009-04-14 12:54:21 -07:00
|
|
|
Evas_Object *o;
|
2010-03-03 16:36:02 -08:00
|
|
|
Eina_Bool disable = !e_widget_check_checked_get(obj);
|
2009-04-14 12:54:21 -07:00
|
|
|
|
|
|
|
EINA_LIST_FOREACH(list, l, o)
|
2012-10-11 06:23:14 -07:00
|
|
|
e_widget_disabled_set(o, disable);
|
2009-04-14 12:54:21 -07:00
|
|
|
}
|
2012-10-11 06:23:14 -07:00
|
|
|
|