billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=10b7b19bc9b33be24f9bb1627335264f03573d48

commit 10b7b19bc9b33be24f9bb1627335264f03573d48
Author: godfath3r <galatsan...@gmail.com>
Date:   Sun Aug 2 22:44:20 2015 +0200

    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 b121497..ee0588a 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 9cca90d..c7d3a10 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 6a6dbc9..95bf634 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 a674922..3972588 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);
 

-- 


Reply via email to