forked from enlightenment/enlightenment
Add config variable for quickpanel animation duration.
Add gui for setting quickpanel duration (in Animation settings) Bump config version for new variable (qp duration) SVN revision: 44742
This commit is contained in:
parent
fa7997bb19
commit
3f2e4ed776
|
@ -78,6 +78,30 @@ _il_config_animation_ui(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *
|
|||
_il_config_animation_change, NULL);
|
||||
e_widget_list_object_append(list, of, 1, 0, 0.0);
|
||||
|
||||
of = e_widget_framelist_add(evas, _("Quickpanel"), 0);
|
||||
rg = e_widget_radio_group_new(&(il_cfg->sliding.quickpanel.duration));
|
||||
ow = e_widget_radio_add(evas, _("Slow"), 2000, rg);
|
||||
e_widget_framelist_object_append(of, ow);
|
||||
evas_object_smart_callback_add(ow, "changed",
|
||||
_il_config_animation_change, NULL);
|
||||
ow = e_widget_radio_add(evas, _("Medium"), 1000, rg);
|
||||
e_widget_framelist_object_append(of, ow);
|
||||
evas_object_smart_callback_add(ow, "changed",
|
||||
_il_config_animation_change, NULL);
|
||||
ow = e_widget_radio_add(evas, _("Fast"), 500, rg);
|
||||
e_widget_framelist_object_append(of, ow);
|
||||
evas_object_smart_callback_add(ow, "changed",
|
||||
_il_config_animation_change, NULL);
|
||||
ow = e_widget_radio_add(evas, _("Very Fast"), 250, rg);
|
||||
e_widget_framelist_object_append(of, ow);
|
||||
evas_object_smart_callback_add(ow, "changed",
|
||||
_il_config_animation_change, NULL);
|
||||
ow = e_widget_radio_add(evas, _("Off"), 0, rg);
|
||||
e_widget_framelist_object_append(of, ow);
|
||||
evas_object_smart_callback_add(ow, "changed",
|
||||
_il_config_animation_change, NULL);
|
||||
e_widget_list_object_append(list, of, 1, 0, 0.0);
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ il_config_init(E_Module *m)
|
|||
E_CONFIG_VAL(D, T, version, INT);
|
||||
E_CONFIG_VAL(D, T, sliding.kbd.duration, INT);
|
||||
E_CONFIG_VAL(D, T, sliding.softkey.duration, INT);
|
||||
E_CONFIG_VAL(D, T, sliding.quickpanel.duration, INT);
|
||||
E_CONFIG_VAL(D, T, policy.name, STR);
|
||||
E_CONFIG_VAL(D, T, policy.mode.dual, INT);
|
||||
E_CONFIG_VAL(D, T, policy.mode.side, INT);
|
||||
|
@ -128,6 +129,10 @@ il_config_init(E_Module *m)
|
|||
il_cfg->policy.mode.dual = 0;
|
||||
il_cfg->policy.mode.side = 0;
|
||||
}
|
||||
if ((il_cfg->version & 0xffff) < 3)
|
||||
{
|
||||
il_cfg->sliding.quickpanel.duration = 1000;
|
||||
}
|
||||
il_cfg->version = (IL_CONFIG_MAJ << 16) | IL_CONFIG_MIN;
|
||||
}
|
||||
il_cfg->mod_dir = eina_stringshare_add(m->dir);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef E_MOD_CONFIG_H
|
||||
# define E_MOD_CONFIG_H
|
||||
|
||||
# define IL_CONFIG_MIN 2
|
||||
# define IL_CONFIG_MIN 3
|
||||
# define IL_CONFIG_MAJ 0
|
||||
|
||||
typedef struct _Il_Config Il_Config;
|
||||
|
@ -15,7 +15,7 @@ struct _Il_Config
|
|||
struct
|
||||
{
|
||||
int duration;
|
||||
} kbd, softkey;
|
||||
} kbd, softkey, quickpanel;
|
||||
} sliding;
|
||||
|
||||
struct
|
||||
|
|
Loading…
Reference in New Issue