summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_code_diff_widget.c
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2018-01-24 15:50:58 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2018-01-24 18:14:26 +0900
commitcb25699dacde420a0e0c3434065ab8dac242ee6e (patch)
treeaadf195322243f48771eb3235e9079c5a25891b5 /src/lib/elementary/elm_code_diff_widget.c
parentf6ba674cd8ada4e018fd205dab2e877e9a19a820 (diff)
efl_ui_legacy: add new interface to indicate legacy widget
Summary: For now, how to check whether a widget is legacy or not is to check flags in private data or static flag, which is set during elm_legacy_add. If Efl.Ui.Legacy interface is added, it can be easilly checked by efl_isa(obj, EFL_UI_LEGACY_INTERFACE) Reviewers: woohyun, jpeg, cedric, Jaehyun_Cho Subscribers: conr2d, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5748
Diffstat (limited to 'src/lib/elementary/elm_code_diff_widget.c')
-rw-r--r--src/lib/elementary/elm_code_diff_widget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_code_diff_widget.c b/src/lib/elementary/elm_code_diff_widget.c
index eec32ee..d8ec149 100644
--- a/src/lib/elementary/elm_code_diff_widget.c
+++ b/src/lib/elementary/elm_code_diff_widget.c
@@ -95,7 +95,7 @@ elm_code_diff_widget_add(Evas_Object *parent, Elm_Code *code)
95 // left side of diff 95 // left side of diff
96 wcode1 = elm_code_create(); 96 wcode1 = elm_code_create();
97 elm_code_parser_standard_add(wcode1, ELM_CODE_PARSER_STANDARD_DIFF); 97 elm_code_parser_standard_add(wcode1, ELM_CODE_PARSER_STANDARD_DIFF);
98 widget_left = efl_add(ELM_CODE_WIDGET_CLASS, parent, elm_obj_code_widget_code_set(efl_added, wcode1)); 98 widget_left = elm_legacy_add(ELM_CODE_WIDGET_LEGACY_CLASS, parent, elm_obj_code_widget_code_set(efl_added, wcode1));
99 99
100 evas_object_size_hint_weight_set(widget_left, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 100 evas_object_size_hint_weight_set(widget_left, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
101 evas_object_size_hint_align_set(widget_left, EVAS_HINT_FILL, EVAS_HINT_FILL); 101 evas_object_size_hint_align_set(widget_left, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -106,7 +106,7 @@ elm_code_diff_widget_add(Evas_Object *parent, Elm_Code *code)
106 // right side of diff 106 // right side of diff
107 wcode2 = elm_code_create(); 107 wcode2 = elm_code_create();
108 elm_code_parser_standard_add(wcode2, ELM_CODE_PARSER_STANDARD_DIFF); 108 elm_code_parser_standard_add(wcode2, ELM_CODE_PARSER_STANDARD_DIFF);
109 widget_right = efl_add(ELM_CODE_WIDGET_CLASS, parent, elm_obj_code_widget_code_set(efl_added, wcode2)); 109 widget_right = elm_legacy_add(ELM_CODE_WIDGET_LEGACY_CLASS, parent, elm_obj_code_widget_code_set(efl_added, wcode2));
110 110
111 evas_object_size_hint_weight_set(widget_right, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 111 evas_object_size_hint_weight_set(widget_right, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
112 evas_object_size_hint_align_set(widget_right, EVAS_HINT_FILL, EVAS_HINT_FILL); 112 evas_object_size_hint_align_set(widget_right, EVAS_HINT_FILL, EVAS_HINT_FILL);