express: Only update tabbar, tabcount, etc when tabs are enabled
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
a6eda968fe
commit
6d16d808b5
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue