summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_tab_bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/efl_ui_tab_bar.c')
-rw-r--r--src/lib/elementary/efl_ui_tab_bar.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/elementary/efl_ui_tab_bar.c b/src/lib/elementary/efl_ui_tab_bar.c
index 6f49b40..077212c 100644
--- a/src/lib/elementary/efl_ui_tab_bar.c
+++ b/src/lib/elementary/efl_ui_tab_bar.c
@@ -213,7 +213,7 @@ _tab_add(Eo *obj, const char *label, const char *icon)
213{ 213{
214 Eo *tab, *icon_obj; 214 Eo *tab, *icon_obj;
215 Tab_Info *ti; 215 Tab_Info *ti;
216 Efl_Ui_Theme_Apply_Result theme_apply; 216 Eina_Error theme_apply;
217 217
218 ti = calloc(1, sizeof(*ti)); 218 ti = calloc(1, sizeof(*ti));
219 219
@@ -243,7 +243,7 @@ _tab_add(Eo *obj, const char *label, const char *icon)
243 243
244 theme_apply = elm_widget_element_update(obj, tab, PART_NAME_TAB); 244 theme_apply = elm_widget_element_update(obj, tab, PART_NAME_TAB);
245 245
246 if (theme_apply == EFL_UI_THEME_APPLY_RESULT_FAIL) 246 if (theme_apply == EFL_UI_THEME_APPLY_ERROR_GENERIC)
247 CRI("Failed to set layout!"); 247 CRI("Failed to set layout!");
248 248
249 efl_layout_signal_callback_add 249 efl_layout_signal_callback_add
@@ -370,12 +370,13 @@ _efl_ui_tab_bar_efl_object_constructor(Eo *obj, Efl_Ui_Tab_Bar_Data *sd)
370 370
371 obj = efl_constructor(efl_super(obj, MY_CLASS)); 371 obj = efl_constructor(efl_super(obj, MY_CLASS));
372 372
373 if (!elm_widget_theme_object_set(obj, wd->resize_obj, 373 if (elm_widget_theme_object_set(obj, wd->resize_obj,
374 elm_widget_theme_klass_get(obj), 374 elm_widget_theme_klass_get(obj),
375 elm_widget_theme_element_get(obj), 375 elm_widget_theme_element_get(obj),
376 elm_widget_theme_style_get(obj))) 376 elm_widget_theme_style_get(obj)) == EFL_UI_THEME_APPLY_ERROR_GENERIC)
377 CRI("Failed to set layout!"); 377 CRI("Failed to set layout!");
378 378
379
379 elm_widget_sub_object_parent_add(obj); 380 elm_widget_sub_object_parent_add(obj);
380 381
381 sd->dir = EFL_UI_DIR_HORIZONTAL; 382 sd->dir = EFL_UI_DIR_HORIZONTAL;