summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgodfath3r <galatsanosp@gmail.com>2015-08-02 22:44:20 +0200
committerBoris Faure <billiob@gmail.com>2015-08-02 22:44:32 +0200
commit10b7b19bc9b33be24f9bb1627335264f03573d48 (patch)
treeeaae9ce3fa93f34b03f32f95a338f758f713216a /src
parent3182c1f4af855cdd07c02984e295c22e206e35e4 (diff)
Add 'Show miniview by default' in options.
Summary: Fixes T1876 Reviewers: billiob, raster Maniphest Tasks: T1876 Differential Revision: https://phab.enlightenment.org/D2869
Diffstat (limited to 'src')
-rw-r--r--src/bin/config.c4
-rw-r--r--src/bin/config.h1
-rw-r--r--src/bin/options_behavior.c2
-rw-r--r--src/bin/win.c3
4 files changed, 10 insertions, 0 deletions
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)
161 (edd_base, Config, "gravatar", gravatar, EET_T_UCHAR); 161 (edd_base, Config, "gravatar", gravatar, EET_T_UCHAR);
162 EET_DATA_DESCRIPTOR_ADD_BASIC 162 EET_DATA_DESCRIPTOR_ADD_BASIC
163 (edd_base, Config, "notabs", notabs, EET_T_UCHAR); 163 (edd_base, Config, "notabs", notabs, EET_T_UCHAR);
164 EET_DATA_DESCRIPTOR_ADD_BASIC
165 (edd_base, Config, "mv_always_show", mv_always_show, EET_T_UCHAR);
164} 166}
165 167
166void 168void
@@ -533,6 +535,7 @@ config_load(const char *key)
533 config->colors_use = EINA_FALSE; 535 config->colors_use = EINA_FALSE;
534 config->gravatar = EINA_TRUE; 536 config->gravatar = EINA_TRUE;
535 config->notabs = EINA_FALSE; 537 config->notabs = EINA_FALSE;
538 config->mv_always_show = EINA_FALSE;
536 for (j = 0; j < 4; j++) 539 for (j = 0; j < 4; j++)
537 { 540 {
538 for (i = 0; i < 12; i++) 541 for (i = 0; i < 12; i++)
@@ -624,6 +627,7 @@ config_fork(Config *config)
624 CPY(font_set); 627 CPY(font_set);
625 CPY(gravatar); 628 CPY(gravatar);
626 CPY(notabs); 629 CPY(notabs);
630 CPY(mv_always_show);
627 631
628 EINA_LIST_FOREACH(config->keys, l, key) 632 EINA_LIST_FOREACH(config->keys, l, key)
629 { 633 {
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
74 Eina_Bool colors_use; 74 Eina_Bool colors_use;
75 Eina_Bool gravatar; 75 Eina_Bool gravatar;
76 Eina_Bool notabs; 76 Eina_Bool notabs;
77 Eina_Bool mv_always_show;
77 Config_Color colors[(4 * 12)]; 78 Config_Color colors[(4 * 12)];
78 Eina_List *keys; 79 Eina_List *keys;
79 80
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);
41CB(mouse_over_focus, 0); 41CB(mouse_over_focus, 0);
42CB(gravatar, 0); 42CB(gravatar, 0);
43CB(notabs, 1); 43CB(notabs, 1);
44CB(mv_always_show, 0);
44 45
45#undef CB 46#undef CB
46 47
@@ -189,6 +190,7 @@ options_behavior(Evas_Object *opbox, Evas_Object *term)
189 CX(_("Focus split under the Mouse"), mouse_over_focus, 0); 190 CX(_("Focus split under the Mouse"), mouse_over_focus, 0);
190 CX(_("Gravatar integration"), gravatar, 0); 191 CX(_("Gravatar integration"), gravatar, 0);
191 CX(_("Show tabs"), notabs, 1); 192 CX(_("Show tabs"), notabs, 1);
193 CX(_("Always show miniview"), mv_always_show, 0);
192 194
193#undef CX 195#undef CX
194 196
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,
3994 else 3994 else
3995 msg.val = 100; 3995 msg.val = 100;
3996 3996
3997 if (term->config->mv_always_show)
3998 term->miniview_shown = EINA_TRUE;
3999
3997 edje_object_message_send(term->bg, EDJE_MESSAGE_INT, 1, &msg); 4000 edje_object_message_send(term->bg, EDJE_MESSAGE_INT, 1, &msg);
3998 edje_object_message_send(term->base, EDJE_MESSAGE_INT, 1, &msg); 4001 edje_object_message_send(term->base, EDJE_MESSAGE_INT, 1, &msg);
3999 4002