express: Only update tabbar, tabcount, etc when tabs are enabled

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-04-10 10:58:07 -04:00
parent a6eda968fe
commit 6d16d808b5
1 changed files with 10 additions and 4 deletions

View File

@ -528,6 +528,7 @@ _window_update(void)
EINA_LIST_FOREACH(_win->channels, l, chl)
_channel_update(chl);
if (_ex_cfg->gui.tabs)
_window_tabcount_update();
_window_size_update();
@ -566,6 +567,7 @@ _window_channel_create(const char *name, const char *server)
_window_channel_count_update();
/* update tabcount */
if (_ex_cfg->gui.tabs)
_window_tabcount_update();
return chl;
@ -681,6 +683,7 @@ _window_channel_activate(Channel *chl)
_window_channel_count_update();
/* update tabcount */
if (_ex_cfg->gui.tabs)
_window_tabcount_update();
/* set window title */
@ -994,6 +997,7 @@ _window_tabbar_fill(Channel *chl)
edje_object_signal_callback_add(o, "tab,activate", PACKAGE_NAME,
_cb_tab_activate, 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))
{