summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_multibuttonentry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elc_multibuttonentry.c')
-rw-r--r--src/lib/elementary/elc_multibuttonentry.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/elementary/elc_multibuttonentry.c b/src/lib/elementary/elc_multibuttonentry.c
index 57d6126..0032ad0 100644
--- a/src/lib/elementary/elc_multibuttonentry.c
+++ b/src/lib/elementary/elc_multibuttonentry.c
@@ -13,7 +13,7 @@
13#include "elm_priv.h" 13#include "elm_priv.h"
14#include "elm_widget_multibuttonentry.h" 14#include "elm_widget_multibuttonentry.h"
15#include "elm_multibuttonentry_part.eo.h" 15#include "elm_multibuttonentry_part.eo.h"
16#include "elm_entry.eo.h" 16#include "elm_entry_eo.h"
17#include "elm_part_helper.h" 17#include "elm_part_helper.h"
18 18
19#define MY_CLASS ELM_MULTIBUTTONENTRY_CLASS 19#define MY_CLASS ELM_MULTIBUTTONENTRY_CLASS
@@ -91,7 +91,7 @@ _format_count(int count, void *data EINA_UNUSED)
91 return strdup(buf); 91 return strdup(buf);
92} 92}
93 93
94EOLIAN static Efl_Ui_Theme_Apply_Result 94EOLIAN static Eina_Error
95_elm_multibuttonentry_efl_ui_widget_theme_apply(Eo *obj, Elm_Multibuttonentry_Data *sd) 95_elm_multibuttonentry_efl_ui_widget_theme_apply(Eo *obj, Elm_Multibuttonentry_Data *sd)
96{ 96{
97 const char *str; 97 const char *str;
@@ -100,9 +100,9 @@ _elm_multibuttonentry_efl_ui_widget_theme_apply(Eo *obj, Elm_Multibuttonentry_Da
100 Elm_Object_Item *eo_item; 100 Elm_Object_Item *eo_item;
101 double pad_scale; 101 double pad_scale;
102 102
103 Efl_Ui_Theme_Apply_Result int_ret = EFL_UI_THEME_APPLY_RESULT_FAIL; 103 Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
104 int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS)); 104 int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
105 if (!int_ret) return EFL_UI_THEME_APPLY_RESULT_FAIL; 105 if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
106 106
107 str = elm_layout_data_get(obj, "horizontal_pad"); 107 str = elm_layout_data_get(obj, "horizontal_pad");
108 if (str) hpad = atoi(str); 108 if (str) hpad = atoi(str);
@@ -495,7 +495,7 @@ _on_item_clicked(void *data,
495 495
496 if (_elm_config->atspi_mode) 496 if (_elm_config->atspi_mode)
497 efl_access_state_changed_signal_emit(eo_it, 497 efl_access_state_changed_signal_emit(eo_it,
498 EFL_ACCESS_STATE_CHECKED, 498 EFL_ACCESS_STATE_TYPE_CHECKED,
499 EINA_TRUE); 499 EINA_TRUE);
500 500
501 if (sd->selected_it) 501 if (sd->selected_it)
@@ -938,7 +938,7 @@ _item_new(Elm_Multibuttonentry_Data *sd,
938//FIXME: having an empty event handling function and reacting on Evas 938//FIXME: having an empty event handling function and reacting on Evas
939//events on specific objects is crazy, someone should fix that. 939//events on specific objects is crazy, someone should fix that.
940EOLIAN static Eina_Bool 940EOLIAN static Eina_Bool
941_elm_multibuttonentry_efl_ui_widget_widget_event(Eo *obj EINA_UNUSED, Elm_Multibuttonentry_Data *sd EINA_UNUSED, const Efl_Event *eo_event EINA_UNUSED, Evas_Object *src EINA_UNUSED) 941_elm_multibuttonentry_efl_ui_widget_widget_input_event_handler(Eo *obj EINA_UNUSED, Elm_Multibuttonentry_Data *sd EINA_UNUSED, const Efl_Event *eo_event EINA_UNUSED, Evas_Object *src EINA_UNUSED)
942{ 942{
943 // ACCESS 943 // ACCESS
944 if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) return EINA_FALSE; 944 if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) return EINA_FALSE;
@@ -1564,10 +1564,10 @@ _elm_multibuttonentry_efl_canvas_group_group_add(Eo *obj, Elm_Multibuttonentry_D
1564 efl_canvas_group_add(efl_super(obj, MY_CLASS)); 1564 efl_canvas_group_add(efl_super(obj, MY_CLASS));
1565 elm_widget_sub_object_parent_add(obj); 1565 elm_widget_sub_object_parent_add(obj);
1566 1566
1567 if (!elm_widget_theme_object_set(obj, wd->resize_obj, 1567 if (elm_widget_theme_object_set(obj, wd->resize_obj,
1568 elm_widget_theme_klass_get(obj), 1568 elm_widget_theme_klass_get(obj),
1569 elm_widget_theme_element_get(obj), 1569 elm_widget_theme_element_get(obj),
1570 elm_widget_theme_style_get(obj))) 1570 elm_widget_theme_style_get(obj)) == EFL_UI_THEME_APPLY_ERROR_GENERIC)
1571 CRI("Failed to set layout!"); 1571 CRI("Failed to set layout!");
1572 1572
1573 elm_widget_can_focus_set(obj, EINA_FALSE); 1573 elm_widget_can_focus_set(obj, EINA_FALSE);
@@ -1974,10 +1974,10 @@ _elm_multibuttonentry_item_efl_access_object_state_set_get(const Eo *eo_it, Elm_
1974 1974
1975 sel = elm_obj_multibuttonentry_item_selected_get(eo_it); 1975 sel = elm_obj_multibuttonentry_item_selected_get(eo_it);
1976 1976
1977 STATE_TYPE_SET(ret, EFL_ACCESS_STATE_EDITABLE); 1977 STATE_TYPE_SET(ret, EFL_ACCESS_STATE_TYPE_EDITABLE);
1978 1978
1979 if (sel) 1979 if (sel)
1980 STATE_TYPE_SET(ret, EFL_ACCESS_STATE_CHECKED); 1980 STATE_TYPE_SET(ret, EFL_ACCESS_STATE_TYPE_CHECKED);
1981 1981
1982 return ret; 1982 return ret;
1983} 1983}
@@ -2033,5 +2033,5 @@ ELM_PART_OVERRIDE_TEXT_GET(elm_multibuttonentry, ELM_MULTIBUTTONENTRY, Elm_Multi
2033 ELM_LAYOUT_SIZING_EVAL_OPS(elm_multibuttonentry), \ 2033 ELM_LAYOUT_SIZING_EVAL_OPS(elm_multibuttonentry), \
2034 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_multibuttonentry) 2034 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_multibuttonentry)
2035 2035
2036#include "elm_multibuttonentry_item.eo.c" 2036#include "elm_multibuttonentry_item_eo.c"
2037#include "elm_multibuttonentry.eo.c" 2037#include "elm_multibuttonentry_eo.c"