From 10b7b19bc9b33be24f9bb1627335264f03573d48 Mon Sep 17 00:00:00 2001 From: godfath3r Date: Sun, 2 Aug 2015 22:44:20 +0200 Subject: [PATCH] Add 'Show miniview by default' in options. Summary: Fixes T1876 Reviewers: billiob, raster Maniphest Tasks: T1876 Differential Revision: https://phab.enlightenment.org/D2869 --- src/bin/config.c | 4 ++++ src/bin/config.h | 1 + src/bin/options_behavior.c | 2 ++ src/bin/win.c | 3 +++ 4 files changed, 10 insertions(+) diff --git a/src/bin/config.c b/src/bin/config.c index b121497e..ee0588a6 100644 --- a/src/bin/config.c +++ b/src/bin/config.c @@ -161,6 +161,8 @@ config_init(void) (edd_base, Config, "gravatar", gravatar, EET_T_UCHAR); EET_DATA_DESCRIPTOR_ADD_BASIC (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 @@ -533,6 +535,7 @@ config_load(const char *key) config->colors_use = EINA_FALSE; config->gravatar = EINA_TRUE; config->notabs = EINA_FALSE; + config->mv_always_show = EINA_FALSE; for (j = 0; j < 4; j++) { for (i = 0; i < 12; i++) @@ -624,6 +627,7 @@ config_fork(Config *config) CPY(font_set); CPY(gravatar); CPY(notabs); + CPY(mv_always_show); EINA_LIST_FOREACH(config->keys, l, key) { diff --git a/src/bin/config.h b/src/bin/config.h index 9cca90d2..c7d3a102 100644 --- a/src/bin/config.h +++ b/src/bin/config.h @@ -74,6 +74,7 @@ struct _Config Eina_Bool colors_use; Eina_Bool gravatar; Eina_Bool notabs; + Eina_Bool mv_always_show; Config_Color colors[(4 * 12)]; Eina_List *keys; diff --git a/src/bin/options_behavior.c b/src/bin/options_behavior.c index 6a6dbc94..95bf6344 100644 --- a/src/bin/options_behavior.c +++ b/src/bin/options_behavior.c @@ -41,6 +41,7 @@ CB(login_shell, 0); CB(mouse_over_focus, 0); CB(gravatar, 0); CB(notabs, 1); +CB(mv_always_show, 0); #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(_("Gravatar integration"), gravatar, 0); CX(_("Show tabs"), notabs, 1); + CX(_("Always show miniview"), mv_always_show, 0); #undef CX diff --git a/src/bin/win.c b/src/bin/win.c index a674922d..3972588f 100644 --- a/src/bin/win.c +++ b/src/bin/win.c @@ -3994,6 +3994,9 @@ term_new(Win *wn, Config *config, const char *cmd, else 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->base, EDJE_MESSAGE_INT, 1, &msg);