Elm_Code_Widget2: Inherit from box instead of layout since a layout is not provided.

This commit is contained in:
Stephen Houston 2015-01-23 20:35:14 -06:00
parent 64b08570f0
commit 4ed86910af
2 changed files with 3 additions and 6 deletions

View File

@ -55,15 +55,12 @@ printf("add\n");
text = elm_label_add(obj);
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_align_set(text, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(text);
elm_box_pack_end(obj, text);
eo_do(obj, elm_obj_widget_theme_apply());
elm_layout_sizing_eval(obj);
}
EOLIAN static void

View File

@ -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[] = {
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_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(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, ""),
@ -50,4 +50,4 @@ static const Eo_Class_Description _elm_code_widget2_class_desc = {
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);