Add 'Show miniview by default' in options.
Summary: Fixes T1876 Reviewers: billiob, raster Maniphest Tasks: T1876 Differential Revision: https://phab.enlightenment.org/D2869
This commit is contained in:
parent
3182c1f4af
commit
10b7b19bc9
|
@ -161,6 +161,8 @@ config_init(void)
|
||||||
(edd_base, Config, "gravatar", gravatar, EET_T_UCHAR);
|
(edd_base, Config, "gravatar", gravatar, EET_T_UCHAR);
|
||||||
EET_DATA_DESCRIPTOR_ADD_BASIC
|
EET_DATA_DESCRIPTOR_ADD_BASIC
|
||||||
(edd_base, Config, "notabs", notabs, EET_T_UCHAR);
|
(edd_base, Config, "notabs", notabs, EET_T_UCHAR);
|
||||||
|
EET_DATA_DESCRIPTOR_ADD_BASIC
|
||||||
|
(edd_base, Config, "mv_always_show", mv_always_show, EET_T_UCHAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -533,6 +535,7 @@ config_load(const char *key)
|
||||||
config->colors_use = EINA_FALSE;
|
config->colors_use = EINA_FALSE;
|
||||||
config->gravatar = EINA_TRUE;
|
config->gravatar = EINA_TRUE;
|
||||||
config->notabs = EINA_FALSE;
|
config->notabs = EINA_FALSE;
|
||||||
|
config->mv_always_show = EINA_FALSE;
|
||||||
for (j = 0; j < 4; j++)
|
for (j = 0; j < 4; j++)
|
||||||
{
|
{
|
||||||
for (i = 0; i < 12; i++)
|
for (i = 0; i < 12; i++)
|
||||||
|
@ -624,6 +627,7 @@ config_fork(Config *config)
|
||||||
CPY(font_set);
|
CPY(font_set);
|
||||||
CPY(gravatar);
|
CPY(gravatar);
|
||||||
CPY(notabs);
|
CPY(notabs);
|
||||||
|
CPY(mv_always_show);
|
||||||
|
|
||||||
EINA_LIST_FOREACH(config->keys, l, key)
|
EINA_LIST_FOREACH(config->keys, l, key)
|
||||||
{
|
{
|
||||||
|
|
|
@ -74,6 +74,7 @@ struct _Config
|
||||||
Eina_Bool colors_use;
|
Eina_Bool colors_use;
|
||||||
Eina_Bool gravatar;
|
Eina_Bool gravatar;
|
||||||
Eina_Bool notabs;
|
Eina_Bool notabs;
|
||||||
|
Eina_Bool mv_always_show;
|
||||||
Config_Color colors[(4 * 12)];
|
Config_Color colors[(4 * 12)];
|
||||||
Eina_List *keys;
|
Eina_List *keys;
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ CB(login_shell, 0);
|
||||||
CB(mouse_over_focus, 0);
|
CB(mouse_over_focus, 0);
|
||||||
CB(gravatar, 0);
|
CB(gravatar, 0);
|
||||||
CB(notabs, 1);
|
CB(notabs, 1);
|
||||||
|
CB(mv_always_show, 0);
|
||||||
|
|
||||||
#undef CB
|
#undef CB
|
||||||
|
|
||||||
|
@ -189,6 +190,7 @@ options_behavior(Evas_Object *opbox, Evas_Object *term)
|
||||||
CX(_("Focus split under the Mouse"), mouse_over_focus, 0);
|
CX(_("Focus split under the Mouse"), mouse_over_focus, 0);
|
||||||
CX(_("Gravatar integration"), gravatar, 0);
|
CX(_("Gravatar integration"), gravatar, 0);
|
||||||
CX(_("Show tabs"), notabs, 1);
|
CX(_("Show tabs"), notabs, 1);
|
||||||
|
CX(_("Always show miniview"), mv_always_show, 0);
|
||||||
|
|
||||||
#undef CX
|
#undef CX
|
||||||
|
|
||||||
|
|
|
@ -3994,6 +3994,9 @@ term_new(Win *wn, Config *config, const char *cmd,
|
||||||
else
|
else
|
||||||
msg.val = 100;
|
msg.val = 100;
|
||||||
|
|
||||||
|
if (term->config->mv_always_show)
|
||||||
|
term->miniview_shown = EINA_TRUE;
|
||||||
|
|
||||||
edje_object_message_send(term->bg, EDJE_MESSAGE_INT, 1, &msg);
|
edje_object_message_send(term->bg, EDJE_MESSAGE_INT, 1, &msg);
|
||||||
edje_object_message_send(term->base, EDJE_MESSAGE_INT, 1, &msg);
|
edje_object_message_send(term->base, EDJE_MESSAGE_INT, 1, &msg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue