summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_button.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/efl_ui_button.c')
-rw-r--r--src/lib/elementary/efl_ui_button.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/elementary/efl_ui_button.c b/src/lib/elementary/efl_ui_button.c
index 1be677d..1bff2c9 100644
--- a/src/lib/elementary/efl_ui_button.c
+++ b/src/lib/elementary/efl_ui_button.c
@@ -255,10 +255,10 @@ _efl_ui_button_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Button_Data *_pd EINA_
255 255
256 elm_widget_can_focus_set(obj, EINA_TRUE); 256 elm_widget_can_focus_set(obj, EINA_TRUE);
257 257
258 if (!elm_widget_theme_object_set(obj, wd->resize_obj, 258 if (elm_widget_theme_object_set(obj, wd->resize_obj,
259 elm_widget_theme_klass_get(obj), 259 elm_widget_theme_klass_get(obj),
260 elm_widget_theme_element_get(obj), 260 elm_widget_theme_element_get(obj),
261 elm_widget_theme_style_get(obj))) 261 elm_widget_theme_style_get(obj)) == EFL_UI_THEME_APPLY_ERROR_GENERIC)
262 CRI("Failed to set layout!"); 262 CRI("Failed to set layout!");
263} 263}
264 264
@@ -410,7 +410,7 @@ ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT(MY_CLASS_PFX)
410 410
411#include "efl_ui_button.eo.c" 411#include "efl_ui_button.eo.c"
412 412
413#include "efl_ui_button_legacy.eo.h" 413#include "efl_ui_button_legacy_eo.h"
414#include "efl_ui_button_legacy_part.eo.h" 414#include "efl_ui_button_legacy_part.eo.h"
415 415
416EOLIAN static Eo * 416EOLIAN static Eo *
@@ -442,13 +442,13 @@ _icon_signal_emit(Evas_Object *obj)
442/* FIXME: replicated from elm_layout just because button's icon spot 442/* FIXME: replicated from elm_layout just because button's icon spot
443 * is elm.swallow.content, not elm.swallow.icon. Fix that whenever we 443 * is elm.swallow.content, not elm.swallow.icon. Fix that whenever we
444 * can changed the theme API */ 444 * can changed the theme API */
445EOLIAN static Efl_Ui_Theme_Apply_Result 445EOLIAN static Eina_Error
446_efl_ui_button_legacy_efl_ui_widget_theme_apply(Eo *obj, void *_pd EINA_UNUSED) 446_efl_ui_button_legacy_efl_ui_widget_theme_apply(Eo *obj, void *_pd EINA_UNUSED)
447{ 447{
448 Efl_Ui_Theme_Apply_Result int_ret = EFL_UI_THEME_APPLY_RESULT_FAIL; 448 Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
449 449
450 int_ret = efl_ui_widget_theme_apply(efl_super(obj, EFL_UI_BUTTON_LEGACY_CLASS)); 450 int_ret = efl_ui_widget_theme_apply(efl_super(obj, EFL_UI_BUTTON_LEGACY_CLASS));
451 if (!int_ret) return EFL_UI_THEME_APPLY_RESULT_FAIL; 451 if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
452 _icon_signal_emit(obj); 452 _icon_signal_emit(obj);
453 453
454 return int_ret; 454 return int_ret;
@@ -507,4 +507,4 @@ elm_button_add(Evas_Object *parent)
507 return elm_legacy_add(EFL_UI_BUTTON_LEGACY_CLASS, parent); 507 return elm_legacy_add(EFL_UI_BUTTON_LEGACY_CLASS, parent);
508} 508}
509 509
510#include "efl_ui_button_legacy.eo.c" 510#include "efl_ui_button_legacy_eo.c"