efm+tabs: do not segv if toolbars are disabled.

do not crash if user request a tab but efm is not using toolbars (ie:
nav, path).

It is still producing weird results when create more than one tab.



SVN revision: 40945
This commit is contained in:
Gustavo Sverzut Barbieri 2009-06-07 16:00:35 +00:00
parent c1dd656e64
commit ba1492595b
1 changed files with 4 additions and 2 deletions

View File

@ -644,11 +644,13 @@ _e_fwin_cb_page_change(void *data1, void *data2)
if (prev)
{
evas_object_hide(prev->scrollframe_obj);
e_toolbar_hide(prev->tbar);
if (prev->tbar)
e_toolbar_hide(prev->tbar);
}
evas_object_show(page->scrollframe_obj);
e_toolbar_show(page->tbar);
if (page->tbar)
e_toolbar_show(page->tbar);
fwin->cur_page = page;
evas_object_focus_set(page->fm_obj, 1);