Commit Graph

152 Commits

Author SHA1 Message Date
Iván Briano 6f36d30153 Restricted sizing eval for layout
This allows to select an axis that the layout will use its current size
to restrict the min size calculation of the inner edje, possibly helping
with textblock min size issues
2013-10-25 14:51:33 -02:00
Jaehyun Cho db2d711d64 [elm_widget] Enable not to add resize object to or delete resize object from sub object when the resize object is set.
Summary: Add one more argument, 'Eina_Bool sub_object' to elm_widget_resize_object_set. If the argument, 'sub_object' is set as EINA_TRUE, the new resize object is added to the sub object and the previous resize object is deleted from the sub object.

Reviewers: Hermet, seoz

CC: Jaehyun_Cho, seoz, raster

Differential Revision: https://phab.enlightenment.org/D265
2013-10-17 01:19:40 +09:00
Daniel Juyung Seo 6397761c6a elm_test: Fixed formatting. tab to space.
Changed tab to space before working on the code.
Kinda surprised by the number of tabs we had.
2013-10-14 19:12:32 +09:00
Stefan Schmidt e42eedf44c elm_layout: Remove now superfluous NULL check.
After switching to ELM_WIDGET_DATA_GET_OR_RETURN this NULL check is no
longer needed.

CID: 1102552
2013-10-08 10:56:49 +01:00
Daniel Juyung Seo 3a10554b11 elm_layout: Internal refactoring about layout frozen check.
1. Moved frozen variable to more proper position. Elm_Widget_Smart_Data -> Elm_Layout_Smart_Data.
2. Check frozen at one place. This makes codes cleaner and reduces human mistakes.
2013-10-05 17:59:58 +09:00
Daniel Juyung Seo ce232b0c61 elm_layout.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro. 2013-10-05 16:37:30 +09:00
ChunEon Park 0bedba6f5f elementary/layout - fix the layout to swallow contents again when theme is changed. 2013-09-27 02:05:00 +09:00
Cedric Bail 29af5e1e43 elementary: update to new eo_parent_get/set API. 2013-09-25 13:34:27 +09:00
Daniel Juyung Seo bed7dbb624 elm_layout.c: fixed typo. 2013-09-11 22:38:49 +09:00
Daniel Juyung Seo a5eba63a3b elm_layout.c: refactoring. moved code around for better readability like other eo codes. 2013-08-29 16:39:20 +09:00
ChunEon Park d461a8be05 elementary/widgets - set parents before widget constructs their body.
This avoids unnecessary multiple setups when obj and subobj has connected.
2013-08-27 14:19:19 +09:00
Daniel Juyung Seo c5b0d63838 fixed documentation for consistency. Gets -> Get.
Occurance of Get is super much higher than Gets.
So change Gets to Get for consistency.
2013-08-22 05:24:46 +09:00
Daniel Juyung Seo ecf6eff9a4 elm: formatting fix for consistency. 2013-07-23 06:05:16 +09:00
ChunEon Park 657a0f4d18 elementary/layout - revert commit b4e1b33cbea974e7e05d61a1c37c21f97ff7eabd for the app compatibility. 2013-07-18 13:03:00 +09:00
ChunEon Park 9f9348fd8d elementary/layout - Send visible/hidden signals whenever contents are set/unset (not only icon and end parts) 2013-07-17 10:50:08 +09:00
WooHyun Jung 27d51db839 We can change the focusable state of elm_layout by calling elm_object_focus_allow_set from application side. 2013-07-11 17:47:25 +09:00
Daniel Juyung Seo 8bfdbd2ba6 elm: all the focusable widget now emits "focused" and "unfocused" smart callbacks.
1. documentations, NEWS, and ChangeLog will be updated later after some more test.
2. need to check entry.
2013-06-07 01:13:37 +09:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Ryuan Choi 5685b1607b elm cursor: theme_search means opposition to engine_only.
theme_search_enabled API was introduced instead of engine_only API,
but the meaning is opposition.
2013-05-01 16:39:51 +09:00
ChunEon Park fb78d7dbd3 elementary/layout - layout supports "language,changed" callback 2013-04-30 18:47:38 +09:00
ChunEon Park e95af92756 elementary/widget - added elm_object_part_text_translatble_set() 2013-04-23 16:49:49 +09:00
Daniel Juyung Seo b2663b9d16 elm_entry, elm_layout: fixed formatting.
1. fixed formatting.
2. removed unnecessary lines.
2013-04-17 14:16:56 +09:00
Daniel Juyung Seo dce0d0e9dd elm_layout.c: Fixed layout's _dbg_info_get() function.
It was crashing with the combination of clouseau + naviframe.
Special thanks to JackDanielZ.
2013-04-09 14:48:42 +09:00
Daniel Juyung Seo 74b3eed5fd elm: print the error message inside elm_widget_sub_object_add().
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
   Elm devs should fix it beforehand.
   So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
2013-04-03 11:28:53 +09:00
Stefan Schmidt 9840d67f6a elm: No need for two set of parentheses in a simple comparison.
Seems this got copied around. Better fix it now before it widespreads more.
2013-03-22 08:44:15 +00:00
Tom Hacohen 6612aa8189 Revert changes that slipped in (to elm_layout) that shouldn't have had. 2013-03-19 15:16:58 +00:00
Carsten Haitzler 7916fc6a88 printf - SHUSH! no debug! 2013-03-19 11:05:43 +09:00
Tom Hacohen d75cb616da Change usage of eo_do_super to the new prototype. 2013-03-18 16:15:12 +00:00
Shinwoo Kim 82053ab780 [layout][access] access object on a layout could not be a child of the layout eventhough it is a child actually, because the access object could not be swallowed. 2013-03-18 17:55:09 +09:00
Daniel Juyung Seo 78c042cdbe elm *.c: fixed formatting with EINA_LIST_FREE.
EINA_LIST_FREE (xxx) -> EINA_LIST_FREE(xxx)
2013-03-09 13:23:42 +09:00
Daniel Juyung Seo 395e58265c elm elm_layout.c: fixed a document typo. 2013-03-01 00:18:58 +09:00
Tom Hacohen 912eac55ce Elm layout: Expose some clouseau information.
SVN revision: 84241
2013-02-19 16:23:27 +00:00
ChunEon Park 844b5805ff elementary/widget - don't handle tthe resize objects in widget infrastructure. Acutally these resize objects are sub objects so we don't need to care them separately. This caused overhead in some cases(ie, theme change)
SVN revision: 83990
2013-02-16 13:39:59 +00:00
Daniel Zaoui cdd1eea853 Replace supported_types
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 83803
2013-02-10 07:52:31 +00:00
Jaehwan Kim a36ec132c7 Fix the bug which the callbacks of the sub-object are added even if the sub-object is already added the parent object.
SVN revision: 82053
2013-01-03 09:52:57 +00:00
Cedric BAIL 91dc461a8d elementary: move code around for better readability.
SVN revision: 79871
2012-11-30 07:55:49 +00:00
WooHyun Jung 5147620d6c [elementary/elm_layout] There can be the cases with no aliases and no part name. Then EINA_FALSE should be returned.
Should All widgets(including elm_layout) have default aliases? or Not?.



SVN revision: 79861
2012-11-30 06:18:48 +00:00
Daniel Zaoui 0c915e9023 Cleaning: removed include Eo.h in widgets because it was indirectly included by Elementary.h
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79682
2012-11-26 09:29:01 +00:00
Yakov Goldberg 5c98343198 We have ported to Eo all the widgets of elementary. We didn't change the inheritance itself, only the mechanism, as done previously in Evas, Ecore and Edje. We removed totally the previous inheritance mechanism.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79668
2012-11-26 06:32:53 +00:00
WooHyun Jung 5a4de3b062 [elementary/elm_layout] When elm_layout(or a widget inherits elm_layout) is deleted,
it doesn't need to call _smart_sizing_eval in itself.
Currently, _smart_sizing_eval is called by _elm_layout_smart_sub_object_del when elm_layout is deleted.
I think this is called unnecessarily.


SVN revision: 79540
2012-11-22 14:46:45 +00:00
Cedric BAIL 0474ed0f3f elementary: adds safety check when setting childs to elm_layout_box_*.
Patch from KoziarekBeata <b.koziarek@samsung.com>


SVN revision: 78220
2012-10-19 03:17:00 +00:00
Daniel Juyung Seo 30dba54610 elm: Fixed indentations for EINA_LIST/INLIST_FOREACH(_SAFE).
SVN revision: 77244
2012-10-01 07:36:27 +00:00
Tom Hacohen fd23a2a3af Elm layout: Revert "Elm layout: Fix segfault in some cases."
This reverts commit 76000.

Many thanks to glima for spanking me back into the right path.

SVN revision: 76012
2012-09-03 13:55:20 +00:00
Tom Hacohen 1ecc6bca52 Elm layout: Fix segfault in some cases.
Apparently this fixes stuff for Daniel Zaoui with some more complicated cases.

SVN revision: 76000
2012-09-03 11:14:17 +00:00
Gustavo Sverzut Barbieri dc718ff3ff fix layout signal emission.
- swallow: do not use magic constant '12' and assume it was prefixed
   with 'elm.swallow.';
 - text: use part name and now always 'text'



SVN revision: 75338
2012-08-16 21:41:24 +00:00
Gustavo Lima Chaves 72fa126e71 [elm] Inheritance tweeks on layout.
SVN revision: 74677
2012-07-31 22:05:38 +00:00
Christopher Michael bb27d02b6e Elm: Formatting.
SVN revision: 74554
2012-07-30 07:18:16 +00:00
Cedric BAIL 5e5d86df36 elementary: add thaw/freeze to Elm_Layout and use it in Elm_Calendar.
NOTE: This improve calendar performance quite a lot, but a better improvement
would be to populate the object when we really need it. I don't know how to
do that in current Elementary source code. Reason for another expected massive
improvement is that every time you set a property on an Elm_Calendar trigger
a populate and that one is costly (Around 6 populates call per Elm_Calendar in
our code example, meaning doing it could give us a 6 times boost...).


SVN revision: 74553
2012-07-30 07:14:33 +00:00
Cedric BAIL 187462ec9d elementary: fix erroneous memory access.
One more pack of beer for the Valgrind developer !


SVN revision: 74202
2012-07-20 04:20:06 +00:00