summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_code_diff_widget.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-06 16:26:26 -0500
committerCedric BAIL <cedric.bail@free.fr>2019-03-07 14:14:55 -0800
commitca9daf94c63178bd1ebf726b746e210bb9a0143d (patch)
tree69d390cfe7339b4bc874747f49e8d2cce8dcb4a4 /src/lib/elementary/elm_code_diff_widget.c
parentf549d1c2718fa9250a8f4463bcb010eb77ee4794 (diff)
elm_code_widget: make this efl_ui namespaced
this currently has no counterpart in interface widgets but would be useful there. removing the use of an elm_scroller type makes it independent of legacy widgets, and it's still a beta api so at least future development can be resumed at some point without much issue Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8158
Diffstat (limited to 'src/lib/elementary/elm_code_diff_widget.c')
-rw-r--r--src/lib/elementary/elm_code_diff_widget.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_code_diff_widget.c b/src/lib/elementary/elm_code_diff_widget.c
index 593f044..6386e15 100644
--- a/src/lib/elementary/elm_code_diff_widget.c
+++ b/src/lib/elementary/elm_code_diff_widget.c
@@ -96,7 +96,7 @@ elm_code_diff_widget_add(Evas_Object *parent, Elm_Code *code)
96 // left side of diff 96 // left side of diff
97 wcode1 = elm_code_create(); 97 wcode1 = elm_code_create();
98 elm_code_parser_standard_add(wcode1, ELM_CODE_PARSER_STANDARD_DIFF); 98 elm_code_parser_standard_add(wcode1, ELM_CODE_PARSER_STANDARD_DIFF);
99 widget_left = elm_legacy_add(ELM_CODE_WIDGET_LEGACY_CLASS, parent, elm_obj_code_widget_code_set(efl_added, wcode1)); 99 widget_left = elm_legacy_add(ELM_CODE_WIDGET_LEGACY_CLASS, parent, efl_ui_code_widget_code_set(efl_added, wcode1));
100 100
101 evas_object_size_hint_weight_set(widget_left, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 101 evas_object_size_hint_weight_set(widget_left, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
102 evas_object_size_hint_align_set(widget_left, EVAS_HINT_FILL, EVAS_HINT_FILL); 102 evas_object_size_hint_align_set(widget_left, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -107,7 +107,7 @@ elm_code_diff_widget_add(Evas_Object *parent, Elm_Code *code)
107 // right side of diff 107 // right side of diff
108 wcode2 = elm_code_create(); 108 wcode2 = elm_code_create();
109 elm_code_parser_standard_add(wcode2, ELM_CODE_PARSER_STANDARD_DIFF); 109 elm_code_parser_standard_add(wcode2, ELM_CODE_PARSER_STANDARD_DIFF);
110 widget_right = elm_legacy_add(ELM_CODE_WIDGET_LEGACY_CLASS, parent, elm_obj_code_widget_code_set(efl_added, wcode2)); 110 widget_right = elm_legacy_add(ELM_CODE_WIDGET_LEGACY_CLASS, parent, efl_ui_code_widget_code_set(efl_added, wcode2));
111 111
112 evas_object_size_hint_weight_set(widget_right, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 112 evas_object_size_hint_weight_set(widget_right, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
113 evas_object_size_hint_align_set(widget_right, EVAS_HINT_FILL, EVAS_HINT_FILL); 113 evas_object_size_hint_align_set(widget_right, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -125,8 +125,8 @@ elm_code_diff_widget_font_set(Evas_Object *widget, const char *name, int size)
125 Elm_Code_Widget *child; 125 Elm_Code_Widget *child;
126 126
127 child = (Elm_Code_Widget *) evas_object_data_get(widget, _ELM_CODE_DIFF_WIDGET_LEFT); 127 child = (Elm_Code_Widget *) evas_object_data_get(widget, _ELM_CODE_DIFF_WIDGET_LEFT);
128 elm_obj_code_widget_font_set(child, name, size); 128 efl_ui_code_widget_font_set(child, name, size);
129 child = (Elm_Code_Widget *) evas_object_data_get(widget, _ELM_CODE_DIFF_WIDGET_RIGHT); 129 child = (Elm_Code_Widget *) evas_object_data_get(widget, _ELM_CODE_DIFF_WIDGET_RIGHT);
130 elm_obj_code_widget_font_set(child, name, size); 130 efl_ui_code_widget_font_set(child, name, size);
131} 131}
132 132