elm: Remove range "span_size" API in EO
Reasons: - This API has been confused with the min size of the widget, resulting in badly laid out applications. - The EO API was not very nice (Range is about numbers, the Gfx size hint in a part is really ugly). While I understand the value of this API and how it can be used in scalable applications, it is in fact not absolutely necessary. Alternatively to that span size, the widget min size can already be defined from the application side, or the widget can simply be expanded to fill in its parent. This can obviously be reinstated later if the need arises for EO. For now, keep this feature as legacy-only.
This commit is contained in:
parent
429cbf8cdb
commit
7d39dcc23e
|
@ -38,7 +38,7 @@ elm_main (int argc, char *argv[])
|
|||
|
||||
::elm::slider sl3(efl::eo::parent = win);
|
||||
sl3.value_set(1);
|
||||
sl3.span_size_set(200);
|
||||
sl3.hint_min_set(220, 0);
|
||||
sl3.size_hint_align_set(EVAS_HINT_FILL, 0.5);
|
||||
sl3.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
bx.pack_end(sl3);
|
||||
|
|
Loading…
Reference in New Issue