Changeset View
Changeset View
Standalone View
Standalone View
src/lib/elementary/elm_colorselector.c
Show First 20 Lines • Show All 1790 Lines • ▼ Show 20 Line(s) | 1768 | { | |||
---|---|---|---|---|---|
1791 | evas_object_size_hint_align_set | 1791 | evas_object_size_hint_align_set | ||
1792 | (item->color_obj, EVAS_HINT_FILL, EVAS_HINT_FILL); | 1792 | (item->color_obj, EVAS_HINT_FILL, EVAS_HINT_FILL); | ||
1793 | evas_object_event_callback_add | 1793 | evas_object_event_callback_add | ||
1794 | (item->color_obj, EVAS_CALLBACK_MOUSE_DOWN, _on_color_pressed, item); | 1794 | (item->color_obj, EVAS_CALLBACK_MOUSE_DOWN, _on_color_pressed, item); | ||
1795 | evas_object_event_callback_add | 1795 | evas_object_event_callback_add | ||
1796 | (item->color_obj, EVAS_CALLBACK_MOUSE_MOVE, _on_color_moved, item); | 1796 | (item->color_obj, EVAS_CALLBACK_MOUSE_MOVE, _on_color_moved, item); | ||
1797 | evas_object_event_callback_add | 1797 | evas_object_event_callback_add | ||
1798 | (item->color_obj, EVAS_CALLBACK_MOUSE_UP, _on_color_released, item); | 1798 | (item->color_obj, EVAS_CALLBACK_MOUSE_UP, _on_color_released, item); | ||
1799 | elm_object_part_content_set(VIEW(item), "color_obj", item->color_obj); | 1799 | if (!elm_layout_content_set(VIEW(item), "elm.swallow.color_obj", item->color_obj)) | ||
1800 | elm_layout_content_set(VIEW(item), "color_obj", item->color_obj); | ||||
1800 | 1801 | | |||
1801 | _item_sizing_eval(item); | 1802 | _item_sizing_eval(item); | ||
1802 | evas_object_show(VIEW(item)); | 1803 | evas_object_show(VIEW(item)); | ||
cedric: Hum, ins't elm_object_part_content_set also registering the object as subobject ? | |||||
Not Done ReplyErgh you're right. But it has no return code. Will add manually... zmike: Ergh you're right. But it has no return code. Will add manually... | |||||
Not Done Replyelm_layout_content_set()? Hermet: elm_layout_content_set()? | |||||
Not Done ReplyOh good point. zmike: Oh good point. | |||||
1803 | 1804 | | |||
1804 | // ACCESS | 1805 | // ACCESS | ||
1805 | if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) | 1806 | if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) | ||
1806 | elm_wdg_item_access_register(eo_item); | 1807 | elm_wdg_item_access_register(eo_item); | ||
1807 | 1808 | | |||
1808 | efl_access_object_role_set(eo_item, EFL_ACCESS_ROLE_RADIO_BUTTON); | 1809 | efl_access_object_role_set(eo_item, EFL_ACCESS_ROLE_RADIO_BUTTON); | ||
1809 | 1810 | | |||
1810 | return eo_item; | 1811 | return eo_item; | ||
▲ Show 20 Lines • Show All 926 Lines • Show Last 20 Lines |
Hum, ins't elm_object_part_content_set also registering the object as subobject ?