forked from enlightenment/efl
Elm_Code_Widget2: Inherit from box instead of layout since a layout is not provided.
This commit is contained in:
parent
aeadf18b06
commit
82e57792ca
|
@ -55,15 +55,12 @@ printf("add\n");
|
||||||
|
|
||||||
text = elm_label_add(obj);
|
text = elm_label_add(obj);
|
||||||
elm_object_text_set(text, "HELLO");
|
elm_object_text_set(text, "HELLO");
|
||||||
elm_widget_sub_object_add(obj, text);
|
|
||||||
|
|
||||||
evas_object_size_hint_weight_set(text, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(text, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(text, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(text, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
evas_object_show(text);
|
evas_object_show(text);
|
||||||
|
elm_box_pack_end(obj, text);
|
||||||
|
|
||||||
eo_do(obj, elm_obj_widget_theme_apply());
|
eo_do(obj, elm_obj_widget_theme_apply());
|
||||||
|
|
||||||
elm_layout_sizing_eval(obj);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
|
|
|
@ -26,7 +26,7 @@ void _elm_code_widget2_elm_interface_scrollable_content_pos_set(Eo *obj, Elm_Cod
|
||||||
static Eo_Op_Description _elm_code_widget2_op_desc[] = {
|
static Eo_Op_Description _elm_code_widget2_op_desc[] = {
|
||||||
EO_OP_FUNC_OVERRIDE(eo_constructor, _elm_code_widget2_eo_base_constructor),
|
EO_OP_FUNC_OVERRIDE(eo_constructor, _elm_code_widget2_eo_base_constructor),
|
||||||
EO_OP_FUNC_OVERRIDE(evas_obj_smart_add, _elm_code_widget2_evas_object_smart_add),
|
EO_OP_FUNC_OVERRIDE(evas_obj_smart_add, _elm_code_widget2_evas_object_smart_add),
|
||||||
EO_OP_FUNC_OVERRIDE(evas_obj_smart_resize, _elm_code_widget2_evas_object_smart_resize),
|
// EO_OP_FUNC_OVERRIDE(evas_obj_smart_resize, _elm_code_widget2_evas_object_smart_resize),
|
||||||
EO_OP_FUNC_OVERRIDE(elm_interface_scrollable_content_pos_set, _elm_code_widget2_elm_interface_scrollable_content_pos_set),
|
EO_OP_FUNC_OVERRIDE(elm_interface_scrollable_content_pos_set, _elm_code_widget2_elm_interface_scrollable_content_pos_set),
|
||||||
EO_OP_FUNC(elm_code_widget2_font_size_set, _elm_code_widget2_font_size_set, ""),
|
EO_OP_FUNC(elm_code_widget2_font_size_set, _elm_code_widget2_font_size_set, ""),
|
||||||
EO_OP_FUNC(elm_code_widget2_font_size_get, _elm_code_widget2_font_size_get, ""),
|
EO_OP_FUNC(elm_code_widget2_font_size_get, _elm_code_widget2_font_size_get, ""),
|
||||||
|
@ -50,4 +50,4 @@ static const Eo_Class_Description _elm_code_widget2_class_desc = {
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
EO_DEFINE_CLASS(elm_code_widget2_class_get, &_elm_code_widget2_class_desc, ELM_LAYOUT_CLASS, ELM_INTERFACE_SCROLLABLE_MIXIN, ELM_INTERFACE_ATSPI_TEXT_INTERFACE, NULL);
|
EO_DEFINE_CLASS(elm_code_widget2_class_get, &_elm_code_widget2_class_desc, ELM_BOX_CLASS, ELM_INTERFACE_SCROLLABLE_MIXIN, ELM_INTERFACE_ATSPI_TEXT_INTERFACE, NULL);
|
||||||
|
|
Loading…
Reference in New Issue