From 6d16d808b529dc594aff5dfc77d461523222e7ed Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 10 Apr 2015 10:58:07 -0400 Subject: [PATCH] express: Only update tabbar, tabcount, etc when tabs are enabled Signed-off-by: Chris Michael --- src/bin/window.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/bin/window.c b/src/bin/window.c index 4976b75..3843b3c 100644 --- a/src/bin/window.c +++ b/src/bin/window.c @@ -528,7 +528,8 @@ _window_update(void) EINA_LIST_FOREACH(_win->channels, l, chl) _channel_update(chl); - _window_tabcount_update(); + if (_ex_cfg->gui.tabs) + _window_tabcount_update(); _window_size_update(); } @@ -566,7 +567,8 @@ _window_channel_create(const char *name, const char *server) _window_channel_count_update(); /* update tabcount */ - _window_tabcount_update(); + if (_ex_cfg->gui.tabs) + _window_tabcount_update(); return chl; } @@ -681,7 +683,8 @@ _window_channel_activate(Channel *chl) _window_channel_count_update(); /* update tabcount */ - _window_tabcount_update(); + if (_ex_cfg->gui.tabs) + _window_tabcount_update(); /* set window title */ snprintf(buff, sizeof(buff), "%s - %s", elm_app_name_get(), @@ -994,7 +997,8 @@ _window_tabbar_fill(Channel *chl) edje_object_signal_callback_add(o, "tab,activate", PACKAGE_NAME, _cb_tab_activate, pchl); - _channel_tabbar_update(pchl); + if (_ex_cfg->gui.tabs) + _channel_tabbar_update(pchl); } j++; } @@ -1005,6 +1009,8 @@ _window_tabbar_update(Channel *chl) { Channel *pchl; + if (!_ex_cfg->gui.tabs) return; + pchl = _window_channel_active_get(); if ((pchl) && (pchl != chl)) {