summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2018-01-16 18:10:00 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2018-01-16 19:35:54 +0900
commite592a0ab5b7a13a7720532182671317984cd6617 (patch)
tree24d6def31ba2b602933feb830ab1969c5b49e776
parent001fa5af11c3ca3d5530fdc568350de8889e62a7 (diff)
code widget: Fix order of operations
super functions, when creating stuff, should be called first.
-rw-r--r--src/lib/elementary/elm_code_widget.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c
index dee9751fb9..5d1fc785ef 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -2250,6 +2250,9 @@ _elm_code_widget_efl_ui_widget_theme_apply(Eo *obj, Elm_Code_Widget_Data *pd)
2250 unsigned int i; 2250 unsigned int i;
2251 Evas_Object *grid; 2251 Evas_Object *grid;
2252 2252
2253 if (!efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS)))
2254 return EFL_UI_THEME_APPLY_FAILED;
2255
2253 edje = elm_layout_edje_get(obj); 2256 edje = elm_layout_edje_get(obj);
2254 edje_object_color_class_get(edje, "elm/code/status/default", &r, &g, &b, &a, 2257 edje_object_color_class_get(edje, "elm/code/status/default", &r, &g, &b, &a,
2255 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 2258 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
@@ -2285,12 +2288,12 @@ _elm_code_widget_efl_canvas_group_group_add(Eo *obj, Elm_Code_Widget_Data *pd)
2285 const char *fontname, *fontsize; 2288 const char *fontname, *fontsize;
2286 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 2289 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
2287 2290
2291 efl_canvas_group_add(efl_super(obj, ELM_CODE_WIDGET_CLASS));
2288 if (!elm_widget_theme_klass_get(obj)) 2292 if (!elm_widget_theme_klass_get(obj))
2289 elm_widget_theme_klass_set(obj, "code"); 2293 elm_widget_theme_klass_set(obj, "code");
2290 elm_widget_theme_element_set(obj, "layout"); 2294 elm_widget_theme_element_set(obj, "layout");
2291 _elm_code_widget_efl_ui_widget_theme_apply(obj, pd); 2295 _elm_code_widget_efl_ui_widget_theme_apply(obj, pd);
2292 2296
2293 efl_canvas_group_add(efl_super(obj, ELM_CODE_WIDGET_CLASS));
2294 elm_object_focus_allow_set(obj, EINA_TRUE); 2297 elm_object_focus_allow_set(obj, EINA_TRUE);
2295 pd->alpha = 255; 2298 pd->alpha = 255;
2296 2299