forked from enlightenment/enlightenment
Tiling2: Added config to set window spacing.
This commit is contained in:
parent
f6cd19a9fd
commit
48c1cc947f
|
@ -167,7 +167,7 @@ static Evas_Object *
|
|||
_basic_create_widgets(E_Config_Dialog * cfd EINA_UNUSED, Evas * evas,
|
||||
E_Config_Dialog_Data * cfdata)
|
||||
{
|
||||
Evas_Object *o, *oc, *of;
|
||||
Evas_Object *o, *oc, *of, *slider;
|
||||
E_Comp *comp;
|
||||
E_Zone *zone;
|
||||
Eina_List *l;
|
||||
|
@ -221,6 +221,12 @@ _basic_create_widgets(E_Config_Dialog * cfd EINA_UNUSED, Evas * evas,
|
|||
|
||||
LIST_ADD(o, of);
|
||||
|
||||
of = e_widget_label_add(evas, _("Space between windows"));
|
||||
LIST_ADD(o,of);
|
||||
slider = e_widget_slider_add(evas, 1,0, ("%1.0f px"), 0.0, 20.0,
|
||||
1.0, 0, NULL, &cfdata->config.nb_space, 150);
|
||||
LIST_ADD(o, slider);
|
||||
|
||||
oc = e_widget_button_add(evas, _("Help"), "help", _open_browser_help_cb,
|
||||
NULL, NULL);
|
||||
LIST_ADD(o, oc);
|
||||
|
@ -238,6 +244,7 @@ _basic_apply_data(E_Config_Dialog * cfd EINA_UNUSED,
|
|||
tiling_g.config->tile_dialogs = cfdata->config.tile_dialogs;
|
||||
tiling_g.config->show_titles = cfdata->config.show_titles;
|
||||
tiling_g.config->have_floating_mode = cfdata->config.have_floating_mode;
|
||||
tiling_g.config->nb_space = cfdata->config.nb_space;
|
||||
|
||||
/* Check if the layout for one of the vdesks has changed */
|
||||
for (l = tiling_g.config->vdesks; l; l = l->next)
|
||||
|
|
|
@ -1258,6 +1258,7 @@ e_modapi_init(E_Module * m)
|
|||
E_CONFIG_VAL(_G.config_edd, Config, tile_dialogs, INT);
|
||||
E_CONFIG_VAL(_G.config_edd, Config, show_titles, INT);
|
||||
E_CONFIG_VAL(_G.config_edd, Config, have_floating_mode, INT);
|
||||
E_CONFIG_VAL(_G.config_edd, Config, nb_space, INT);
|
||||
|
||||
E_CONFIG_LIST(_G.config_edd, Config, vdesks, _G.vdesk_edd);
|
||||
E_CONFIG_VAL(_G.vdesk_edd, struct _Config_vdesk, x, INT);
|
||||
|
@ -1272,11 +1273,13 @@ e_modapi_init(E_Module * m)
|
|||
tiling_g.config->tile_dialogs = 1;
|
||||
tiling_g.config->show_titles = 1;
|
||||
tiling_g.config->have_floating_mode = 1;
|
||||
tiling_g.config->nb_space = 0;
|
||||
}
|
||||
|
||||
E_CONFIG_LIMIT(tiling_g.config->tile_dialogs, 0, 1);
|
||||
E_CONFIG_LIMIT(tiling_g.config->show_titles, 0, 1);
|
||||
E_CONFIG_LIMIT(tiling_g.config->have_floating_mode, 0, 1);
|
||||
E_CONFIG_LIMIT(tiling_g.config->nb_space, 0, 20);
|
||||
|
||||
for (l = tiling_g.config->vdesks; l; l = l->next)
|
||||
{
|
||||
|
|
|
@ -39,6 +39,7 @@ struct _Config_vdesk
|
|||
|
||||
struct _Config
|
||||
{
|
||||
int nb_space;
|
||||
int tile_dialogs;
|
||||
int show_titles;
|
||||
int have_floating_mode;
|
||||
|
|
Loading…
Reference in New Issue