Commit Graph

447 Commits

Author SHA1 Message Date
ChunEon Park fef0b0cadd elemenatry/widget - removed incorrect call in widget_translate.
SVN revision: 83858
2013-02-12 13:03:17 +00:00
ChunEon Park 34f27273f9 elementary - removed duplicated logic from translatable_part_text_set()/get().
SVN revision: 83857
2013-02-12 13:00:37 +00:00
ChunEon Park 09dc0877a0 elemenatry - replace elm_object_domain_translatable_text_part_set()/text_part_get() with elm_object_domain_transltable_part_text_set(), part_text_get()
SVN revision: 83856
2013-02-12 11:43:39 +00:00
ChunEon Park 867084e7ba elementary - added elm_object_item_translatable_part_text_set() elm_object_item_translatable_part_text_get()
SVN revision: 83852
2013-02-12 10:38:33 +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
ChunEon Park 02c013627e elementary/widget - something context change left this incompleted code?
SVN revision: 83774
2013-02-08 09:24:05 +00:00
Shinwoo Kim dec42885c9 [access] show highlighted object region, _elm_widget_focus_region_show(); would be exported
SVN revision: 83619
2013-02-05 10:08:42 +00:00
Tom Hacohen 6630e65a31 Elementary: Use new eo dbg type.
SVN revision: 83444
2013-01-29 16:36:13 +00:00
Aharon Hillel 52c035994d Added debug info functions for Clouseau. From now, classes implementing
the Eo function with id EO_BASE_SUB_ID_DBG_INFO_GET will be able to show
in Clouseau their own specific information.
Information contents handling is controlled by the class itself and
no more by Clouseau. Basic types are supported, as couple of ints,
couple of doubles, colors and lists.

Signed-off-by: Aharon Hillel <a.hillel@samsung.com>

SVN revision: 83411
2013-01-29 06:37:01 +00:00
Shinwoo Kim 8ffacbf583 [access] The read next/prev message does not move focus but move highlight only, the focus moves when the activate message is detected.
SVN revision: 83379
2013-01-28 11:13:18 +00:00
WooHyun Jung 079b7c1ec6 elementary/elm_widget : Removed evas_object_smart_data_get and applied eo_data_get.
SVN revision: 83370
2013-01-27 12:14:23 +00:00
Daniel Juyung Seo 59e27f020a elm elm_widget.c: Mark internal functions.
SVN revision: 83352
2013-01-26 09:55:18 +00:00
WooHyun Jung f1a4dc385c elementary/elm_widget : A widget which doesn't have focus_region_get should give its width and height for correct focus_region_show.
SVN revision: 83347
2013-01-26 06:53:10 +00:00
WooHyun Jung 1e2e63d899 elementary/focus : Now, widget itself is the object which gets mouse_up event for stealing focus from another object.
By this change, a widget with scroller interface can change its focus state before adding parent class.


SVN revision: 82853
2013-01-16 04:40:51 +00:00
Daniel Juyung Seo 081f9f8006 elm: Restructuring codes to remove dead codes.
SVN revision: 82445
2013-01-09 09:02:22 +00:00
Daniel Juyung Seo ffa9c1e793 elm: Refactoring.
Smart data is already initialized so we do not need to re-initialize them if the value equals to 0, NULL, or EINA_FALSE.
Sometimes re-initializing smart data explicitly is needed for readability. So there are left overs.

SVN revision: 82228
2013-01-04 19:10:19 +00:00
Daniel Juyung Seo 443d838758 elm elm_widget.c: ;; is not sexy.
SVN revision: 82038
2013-01-03 06:12:51 +00:00
Daniel Zaoui af3342cf0a Removed internal macro that was retrieving the widget data
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 81219
2012-12-18 08:22:13 +00:00
Daniel Juyung Seo e6189411fd elm elm_widget.c: Refactoring internal functions. Move around internal functions for the eo readability.
SVN revision: 80377
2012-12-06 17:49:19 +00:00
Cedric BAIL 668e2a4588 elementary: move macro that should only be used in Elm_Widget inside it.
Note: this was introduced during the move to EO, so no backport.


SVN revision: 80230
2012-12-05 10:59:36 +00:00
Shinwoo Kim 358ffe3b6b [access] remove internal APIs
1. _elm_access_item_register(); please use _elm_access_widget_item_register();
  2. _elm_access_item_unregister(); please use _elm_access_widget_item_unregister();
  3. Elm_Access_Info of Elm_Widget_Item, because Elm_Widget_Item uses elm_access object which has Elm_Access_Info.


SVN revision: 80063
2012-12-03 12:53:24 +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
Daniel Juyung Seo 4c9edafed8 elm elm_widget.c: Added more internal function description.
SVN revision: 79466
2012-11-20 09:59:21 +00:00
Shinwoo Kim c7012af41c [clock] add access features
1. register object and edit part
  2. add mart_focus_next(); on access mode
  3. add smart_ ccess(); for runtime - enable and disalbe handling


SVN revision: 78994
2012-11-08 09:10:13 +00:00
Daniel Juyung Seo 5b7785ccea elm: Fixed on_focus_region() issue. Focused area should be scrolled only when it is needed. Now only entry needs this feature.
SVN revision: 78111
2012-10-17 10:09:52 +00:00
Daniel Juyung Seo 16cb7ae33f elm elm_widget: Use const for getters.
SVN revision: 77978
2012-10-15 06:26:56 +00:00
WooHyun Jung 2640f9a966 elementary : Just fixed some mis-typos :)
SVN revision: 77970
2012-10-15 01:22:12 +00:00
Jiyoun Park 997824fba0 Modify Elm conformant widget to notify display mode change
to child widget related with keypad state change.
elm naviframe check this change and deal with this using theme


SVN revision: 77965
2012-10-14 14:48:02 +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
Gustavo Lima Chaves 6914df9e5f [elm] Let's check for an elm widget before recursing on elm_widget_theme().
SVN revision: 77207
2012-09-28 14:08:00 +00:00
Kim Shinwoo fdaf625316 From: Kim Shinwoo <kimcinoo.efl@gmail.com>
Subject: [E-devel] [patch][elementary] access - activate widget
Subject: [E-devel] [Patch][elementary] scroller, slider - access
activate feature

the previous activate function just get object only. to activate scroller
or slider etc.. it needs more information. so the patch changed previous
activate(Evas_Object *obj) to activate(Evas_Object *obj, Elm_Activate act);
the Elm_Activate can be one of ELM_ACTIVATE_DEFAULT, UP, DOWN, RIGHT, and
LEFT.. you can add more if it is necessary.

I have attached two patches. one is for the slider and the other is for the
scoller.
this patch would support those who wants change value of slider or content
position of scroller on remote side.
this would be useful to the access side or voice control side also.



SVN revision: 76717
2012-09-17 03:01:46 +00:00
WooHyun Jung 67b7042c08 elementary/elm_widget : evas_object_smart_interface_get should be
tried with SMART object only. Before this commit, some applications
printed "evas_debug_magic_wrong".


SVN revision: 76157
2012-09-05 02:37:47 +00:00
Carsten Haitzler 7b3e96932d use shinwoo's 2nd patch not first!
SVN revision: 75979
2012-09-03 08:49:45 +00:00
Gustavo Lima Chaves ac299e6a59 [elm] Rework focus_region and on_focus_region
hooks.

The former is now issued for all scrollables, with the behavior it had
before, and the latter is a new virtual base function, with a default
implementation leading to values matching the old case where one
didn't implement the hook.

Please help me test if everything is OK -- it seems so, here.



SVN revision: 75904
2012-08-30 16:47:16 +00:00
Gustavo Lima Chaves 0f0cd0d914 [elm] Put some order on elm_widget.c.
SVN revision: 75903
2012-08-30 16:47:10 +00:00
Gustavo Lima Chaves f6faa9f105 [elm] Bye, bye, compat.
http://www.xmms.org/graphics/Gaylord.Nelson.waves.byebye.jpg



SVN revision: 75901
2012-08-30 16:46:59 +00:00
Gustavo Lima Chaves b72ea21550 [elm] Dangerous typo--.
SVN revision: 75894
2012-08-30 16:45:59 +00:00
Gustavo Lima Chaves 9f84593673 [elm] Prepare for removal of last widget using
internal scrolling smart cbs.




SVN revision: 75892
2012-08-30 16:45:34 +00:00
Gustavo Lima Chaves 7bf719af40 [elm] Big oopsie--.
SVN revision: 75062
2012-08-09 20:40:27 +00:00
Gustavo Lima Chaves 311214c8d0 Revert "elementary: add smart callback "focus-in"
and "focus-out"."

This reverts commit 1bb12050b9785d47e102b4a3633210316d408f0d.

Conflicts:
	ChangeLog
	NEWS

Cedric, this is just wrong. The *on_focus* smart function of the base
widget is now the central place to handle focus in/out events.

I'll fix the spinner in sequence.



SVN revision: 74853
2012-08-03 16:43:17 +00:00
Cedric BAIL 3148dd42af elementary: add smart callback "focus-in" and "focus-out".
NOTE: Glima could you review this, I am really not sure I should
have implemented it this way.


SVN revision: 74818
2012-08-03 07:00:26 +00:00
Gustavo Lima Chaves c134c85cd6 [elm] One more scrolling hook that must be there
till I address it.




SVN revision: 74406
2012-07-25 22:03:15 +00:00
WooHyun Jung 46eb6df9ef elementary/elm_widget : focus_region function in elm_scroller was not
executed because of _elm_legacy_is always returned EINA_FALSE. So I removed
it.


SVN revision: 74367
2012-07-25 02:43:32 +00:00
Gustavo Lima Chaves ef219914b3 [elm] Also don't advertise this type on our tree
figures.




SVN revision: 74358
2012-07-24 17:34:06 +00:00
Gustavo Lima Chaves 5a44c924e4 [elm] New infra to help factorize initting code for
widgets.

Some of them have initting code using the parent ptr for some logic.
Now there's a new idiom on instantiating widgets which adresses
that. It'll be used for all widgets from now on.



SVN revision: 74147
2012-07-18 21:03:28 +00:00
Gustavo Lima Chaves 45e8d67a78 [elm] New scrollable interface in.
This is meant to be used for all widgets implementing scrolling views.
An Elementary interface adds a given behaviour to whichever widget,
from any class.



SVN revision: 73307
2012-07-04 21:41:01 +00:00
Gustavo Lima Chaves 9d25d801e6 [elm] These intricate scrolling hooks will be the
last to be evaluated.

Porting of the basic scrolling infra to an interface will happenfirst, as well as the scrolling widgets porting.

Patch by: Gustavo Lima Chaves <glima@profusion.mobi>



SVN revision: 73306
2012-07-04 21:36:50 +00:00
Kim Shinwoo a060189012 From: Kim Shinwoo <kimcinoo.efl@gmail.com>
Subject: [E-devel] [Patch][elm_widget] access hook

Real time setting would be necessary in case of running applications
which
have elm_layout or elm_widget_item.
If the access mode does not care of this, running applications should
restart. The attached for this. Please review the patch and give any
feedbacks. Thanks.



SVN revision: 73229
2012-07-03 12:09:34 +00:00
Gustavo Sverzut Barbieri c4caf9d82f safety for elm_object_item_widget_get().
SVN revision: 73117
2012-07-02 01:38:21 +00:00
Cedric BAIL d78b70af51 elementary: use Edje to enable accessibility on TEXTBLOCK.
Patch by Kim Shinwoo <kimcinoo.efl@gmail.com>.


SVN revision: 72841
2012-06-26 05:54:45 +00:00
Gustavo Sverzut Barbieri 74cf7f640a oops, unb0rk compat layer.
glima was on d0rgs...


SVN revision: 72678
2012-06-21 23:37:49 +00:00
Bruno Dilly 04061fc239 Elm: fix the widget event callback freeing
Removes the event callback list within _smart_del. The current
implementation does not care about the node data resulting on
memory leaks.

Here follows the valgrind log:

16 bytes in 1 blocks are definitely lost in loss record 11 of 168
at 0x4C29DB4: calloc (in
        /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
        by 0x522EC34: elm_widget_event_callback_add (elm_widget.c:1996)
        by 0x5A7AA2B: _edje_emit_handle (edje_program.c:1322)
        by 0x5A766B6: _edje_message_queue_process (edje_message_queue.c:764)
        by 0x5A76856: _edje_job (edje_message_queue.c:160)
        by 0x628C02A: _ecore_job_event_handler (ecore_job.c:115)
        by 0x6288C1F: _ecore_event_call (ecore_private.h:319)
        by 0x628D09B: _ecore_main_loop_iterate_internal (ecore_main.c:1814)
        by 0x628D566: ecore_main_loop_begin (ecore_main.c:931)
        by 0x4023B0: elm_main (test.c:198)

Patch by Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 72498
2012-06-19 18:20:38 +00:00
Gustavo Lima Chaves cb2aba8dd8 [elm] Simplify and comment 71573's work.
Let's use the smart data fetching macro whenever possible.



SVN revision: 71587
2012-05-31 16:23:19 +00:00
WooHyun Jung 5f0750f863 elementary : child_can_focus should be EINA_FALSE only when all
children in the object tree were not focusable.


SVN revision: 71573
2012-05-31 07:15:28 +00:00
Gustavo Lima Chaves f72b6c8ad6 [elm] Warn about deprecation of some icon calls
The ones just wrapping their image counterparts should die eventually.
The signal callbacks on icons will die, too, eventually.



SVN revision: 71468
2012-05-28 20:35:35 +00:00
Gustavo Lima Chaves 4f8b51b1aa [elm] And here comes image, icon and photo on the
new schema.
els_icon smart object was brought to be the base of the image widget,
in the form of an image class.

An elm icon is now a elm image, with a little more on top of it.

An elm photo is a now base widget aggregating an icon.

Toolbar's internal usage of the former els_icon is now changed to
icons, instead.

Some naviframe instantiations were set to enable events during
transitions, because this code is buggy and my chages exposed the
problem. It will be fixed as soon as I get to port Naviframe.



SVN revision: 71429
2012-05-25 19:53:59 +00:00
Daniel Juyung Seo 1ab5985722 elm elm_widget.c: Fixed formatting.
SVN revision: 71302
2012-05-22 07:05:07 +00:00
Carsten Haitzler ca1b40bf69 due to use obj structure if sd->api is null.. we have crashes - eg if
webkit not supported. fix this. (no no changelog as ita part of the
whole new structure changes)



SVN revision: 71263
2012-05-21 04:17:11 +00:00
Gustavo Lima Chaves a239210a0d [Elm] Now elm win and inwin got into the new
widget hierarchy.
Win inherits directly from Elm_Widget_Smart_Class, while inwin is now
an elm layout.

Note that elm_widget_sub_object_list_get(), which was an unecessary
hack only used on win, was killed.



SVN revision: 70717
2012-05-03 22:42:15 +00:00
Gustavo Lima Chaves 57b7d52466 [Elm] Helper on resize_object_add()
SVN revision: 70712
2012-05-03 22:41:47 +00:00
Gustavo Lima Chaves f4e29b50ee [Elm] 2nd specialization of Elm's new base smart
class: elm_layout.
This will be, besides the codebase for the elm_layout widget, a common
base for all other widgets which got an edje layout as a basis for
their decoration.

From now on, all elm_layout_* namespaced fuctions will function
on objects inheriting from this base:

- elm_layout_content_set
- elm_layout_content_get
- elm_layout_content_unset
- elm_layout_text_set
- elm_layout_text_get

(recovered from deprecated header -> not anymore)

- elm_layout_sizing_eval
- elm_layout_data_get
- elm_layout_edje_get

- elm_layout_file_set
- elm_layout_theme_set

- elm_layout_box_append
- elm_layout_box_prepend
- elm_layout_box_insert_before
- elm_layout_box_insert_at
- elm_layout_box_remove
- elm_layout_box_remove_all
- elm_layout_table_pack
- elm_layout_table_unpack
- elm_layout_table_clear

Three missing functions on layouts were added, then:

- elm_layout_signal_emit
- elm_layout_signal_callback_add
- elm_layout_signal_callback_del

Naturally, the elm_object_ namespaced counterparts of those will also
function (they will be deprecated on the future).



SVN revision: 70708
2012-05-03 22:41:26 +00:00
Gustavo Lima Chaves efec09ea74 [Elm] Factoring out code for basic widget theme
smart function.



SVN revision: 70706
2012-05-03 22:41:15 +00:00
Gustavo Lima Chaves 109205654d [Elm] Adapting sub_obj_{del,add}, hover and
resize objects to new schema.
sub-object-{add,del} new class functions got their bodies in.  One by
one, the old elm_widget_ namespaced calls to them got to be migrated
to the class calls.

A resize object is now a sub-object, too. This should be like that
from the start -- we share code and avoid callback duplication -- what
leaded to a plethora of bugs.



SVN revision: 70705
2012-05-03 22:41:09 +00:00
Gustavo Lima Chaves 66f5d302ee [Elm] Creating base smart class, to be extended
properly by real widgets.
I'm also creating a *compatibility* class on top of it, which extends
the old (unique) one to its old components, so that everything goes
unnoticed for the widgets.

Next, we'll be accessing class functions for widget hooks *on the base
class*, which will be proxied back to the instance ones.

Then, one by one the widgets will be translated to a proper
hierarchical smart class parentage, making extensibility and reuse
much better.

Last, but not least, since we'll be moving these hooks to the class,
where (almost) everything is a function, let's adapt to the future --
take away the "_func" suffix from them.

NB: there is ONE hook and associated data which was kept on the base,
for now: "show_region" stuff. I did that because scrollers need that
in order to work, right now. Keep in mind, though, the scrollers will
be reworked, so that fields ought to be changed soon, too.



SVN revision: 70704
2012-05-03 22:41:04 +00:00
Gustavo Lima Chaves a83d094b7c [Elm] Renaming base smart data struct, in
preparation for the next commit.



SVN revision: 70703
2012-05-03 22:40:58 +00:00
WooHyun Jung f83917a420 elementar/focus : New feature - focus movement in all direction. By
using elm_widget_focus_direction_go function, focus will be moved from
the current focused object to the near object in one direction.
Direction can be set by degree(for easy usability). Degree changes
clockwise, i.e. 0 means UP, 90 means RIGHT, 180 means DOWN, and 270
means LEFT. You can select any direction by changing this degree.


SVN revision: 70681
2012-05-03 03:02:54 +00:00
Carsten Haitzler c0f2f4be91 REVERT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
this breaks theme api. so NO! come back with a version that doesn't
break it.



SVN revision: 70679
2012-05-03 01:19:05 +00:00
Gustavo Lima Chaves 5869e3bd8d [Elm] Now elm win and inwin got into the new
widget hierarchy.
Win inherits directly from Elm_Widget_Smart_Class, while inwin is now
an elm layout.

Note that elm_widget_sub_object_list_get(), which was an unecessary
hack only used on win, was killed.



SVN revision: 70640
2012-05-02 16:58:56 +00:00
Gustavo Lima Chaves ca072667db [Elm] Helper on resize_object_add()
SVN revision: 70635
2012-05-02 16:58:31 +00:00
Gustavo Lima Chaves e6ab50005c [Elm] 2nd specialization of Elm's new base smart
class: elm_layout.
This will be, besides the codebase for the elm_layout widget, a common
base for all other widgets which got an edje layout as a basis for
their decoration.

From now on, all elm_layout_* namespaced fuctions will function
on objects inheriting from this base:

- elm_layout_content_set
- elm_layout_content_get
- elm_layout_content_unset
- elm_layout_text_set
- elm_layout_text_get

(recovered from deprecated header -> not anymore)

- elm_layout_sizing_eval
- elm_layout_data_get
- elm_layout_edje_get

- elm_layout_file_set
- elm_layout_theme_set

- elm_layout_box_append
- elm_layout_box_prepend
- elm_layout_box_insert_before
- elm_layout_box_insert_at
- elm_layout_box_remove
- elm_layout_box_remove_all
- elm_layout_table_pack
- elm_layout_table_unpack
- elm_layout_table_clear

Three missing functions on layouts were added, then:

- elm_layout_signal_emit
- elm_layout_signal_callback_add
- elm_layout_signal_callback_del

Naturally, the elm_object_ namespaced counterparts of those will also
function (they will be deprecated on the future).



SVN revision: 70631
2012-05-02 16:58:10 +00:00
Gustavo Lima Chaves 2d60b7baba [Elm] Factoring out code for basic widget theme
smart function.



SVN revision: 70629
2012-05-02 16:57:48 +00:00
Gustavo Lima Chaves a5b79bf277 [Elm] Adapting sub_obj_{del,add}, hover and
resize objects to new schema.
sub-object-{add,del} new class functions got their bodies in.  One by
one, the old elm_widget_ namespaced calls to them got to be migrated
to the class calls.

A resize object is now a sub-object, too. This should be like that
from the start -- we share code and avoid callback duplication -- what
leaded to a plethora of bugs.



SVN revision: 70628
2012-05-02 16:57:43 +00:00
Gustavo Lima Chaves 72d6e15f93 [Elm] Creating base smart class, to be extended
properly by real widgets.
I'm also creating a *compatibility* class on top of it, which extends
the old (unique) one to its old components, so that everything goes
unnoticed for the widgets.

Next, we'll be accessing class functions for widget hooks *on the base
class*, which will be proxied back to the instance ones.

Then, one by one the widgets will be translated to a proper
hierarchical smart class parentage, making extensibility and reuse
much better.

Last, but not least, since we'll be moving these hooks to the class,
where (almost) everything is a function, let's adapt to the future --
take away the "_func" suffix from them.

NB: there is ONE hook and associated data which was kept on the base,
for now: "show_region" stuff. I did that because scrollers need that
in order to work, right now. Keep in mind, though, the scrollers will
be reworked, so that fields ought to be changed soon, too.



SVN revision: 70627
2012-05-02 16:57:38 +00:00
Gustavo Lima Chaves 29341fc22c [Elm] Renaming base smart data struct, in
preparation for the next commit.



SVN revision: 70626
2012-05-02 16:57:31 +00:00
Daniel Juyung Seo ba3c148139 elm elm_widget.c: Fixed build break. Thanks for the report Rajeev.
SVN revision: 70164
2012-04-13 06:28:43 +00:00
Daniel Juyung Seo 044bdaf657 elm: Renamed internal function about elm_object_item_part_content/text_set/unset/get.
SVN revision: 70161
2012-04-12 23:39:36 +00:00
Daniel Juyung Seo 528e743c33 elm elm_widget.c: Print error message when unsupported elm_object_item_part_content_set/unset/get and elm_object_item_part_text_set/get APIs are called.
SVN revision: 70154
2012-04-12 15:35:12 +00:00
Daniel Juyung Seo e8cad72816 elm elm_widget.c: Added elm_widget_sub_object_add() parameter
verification. Patch by Taehwan Kim <ohpowel@gmail.com>

On Tue, Apr 10, 2012 at 5:37 PM, Bluezery <ohpowel@gmail.com> wrote:
> Hello,
>
> Currently, elm_widget_sub_object_add() does not check if obj and sobj
> are same object.
> Actually it is a user problem if user add object itself as it's sub
object.
> But I think that this checking is needed and it is better to give
> error logs to users.  Because it causes infinite loop and it is hart
> to debugging.  :(
>
> Thanks.

SVN revision: 69995
2012-04-10 09:47:19 +00:00
ChunEon Park c35d5ac903 elementary/win - [E-devel] [Patch][Elementary] Patch for elm_win to fix the focus chain issue in case of a widget added as a normal sub-object, not a resizable object
Current Issue:
Currently when we add a widget to window as a sub-object, e.g.
elm_notify_add(win) which internally calls elm_widget_sub_object_add
then the focus chain using <TAB> includes only
the first focusable subitem of the widget, not all.
Whereas with elm_win_resize_object_add, it works fine and cycles to
all focusable sub-items of the widget.

Reason:
The reason is that we are appending sub-object to the list in
elm_win which is used for focus chain, only in case of
elm_win_resize_object_add.

Change Description:
Added a new API: EAPI Eina_List
*elm_widget_sub_object_list_get(const Evas_Object *obj);
This API returns the list of sub-objects of an elementary widget
(sd->subobjs) where sd is Smart_Data pointer obtainted using
elm_widget_smart_data_get(obj).
We have used this API in elm_win for focus_next_hook implementation.

Signed-Off-By: RAJEEV RANJAN<rajeev.r>@samsumg.com>



SVN revision: 69943
2012-04-06 06:19:16 +00:00
ChunEon Park cc12f6fc83 elementary/widget - let the child unset the clip on smart_member_del
SVN revision: 69903
2012-04-03 14:29:38 +00:00
ChunEon Park ee803ccfd8 elementary/widget - removed item smart callback internal infra.
Not exposed and not used anywhere.

We don't recommend to apply this.



SVN revision: 69889
2012-04-03 07:30:11 +00:00
Carsten Haitzler 2101792842 fix next calgrind bitch. yay!
SVN revision: 69737
2012-03-29 09:54:21 +00:00
ChunEon Park 0519f0178d elementary/widget - fixed to update the some status -color, clip, visibitliy- even if the memebers are added later.
SVN revision: 69701
2012-03-28 10:03:45 +00:00
Daniel Juyung Seo 7908a77ad8 elm: Fixed formatting.
SVN revision: 69700
2012-03-28 09:02:22 +00:00
WooHyun Jung d1840b22a8 elementary/elm_widget : When adding a sub-object, top_win_focused flag
of parent object should be set for all sub-objects in the tree.   


SVN revision: 69523
2012-03-20 08:42:23 +00:00
Gustavo Lima Chaves e008bd0e5e [Elm] No reason to call theming on !elm object.
SVN revision: 69249
2012-03-12 13:58:19 +00:00
Gustavo Lima Chaves fb2bcea0d0 [Elm] Document obj signal callaback del properly.
Specify which data ptr it returns better. Also forbid uninitialized
var. access there.



SVN revision: 69021
2012-03-07 19:43:23 +00:00
ChunEon Park af38b11e5a elementary - renamed elm_fonts.h to elm_font.h
SVN revision: 68968
2012-03-07 15:09:05 +00:00
Gustavo Lima Chaves feef00175c [Elm] This is meant to be used on the future, as I said.
SVN revision: 68853
2012-03-06 21:56:32 +00:00
Gustavo Lima Chaves 2ecf3ee605 [Elm] Forgotten detail on refactor.
SVN revision: 68850
2012-03-06 21:46:47 +00:00
Gustavo Lima Chaves edd17756d4 [Elm] More on elm error codes on theming.
SVN revision: 68845
2012-03-06 19:06:02 +00:00
Gustavo Lima Chaves ee95a473cf [Elm] Just being future-proof on some methods: error val on return.
SVN revision: 68844
2012-03-06 18:39:53 +00:00
Carsten Haitzler 7a5a301a63 rename a whole host of config-related functions to be elm_config_*
now. yes - no deprecation. no time to do that.



SVN revision: 68810
2012-03-06 12:04:25 +00:00
Daniel Juyung Seo 480c61f20a elm: Formatting. No spacing after casting.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68807
2012-03-06 11:51:42 +00:00
Sanjeev BA 05780e9b14 Deprecate elm_object_cursor_engine_only_set/get.
Signed-off-by: Sanjeev BA <as2902.b@samsung.com>

SVN revision: 68683
2012-03-05 09:15:04 +00:00
ChunEon Park b42f6a38a3 elementary/widget - modified to check delete_me inside MACRO.
SVN revision: 68387
2012-02-24 06:53:03 +00:00
ChunEon Park 9536b08c36 elementary/elm_object_item - added smart callback feature.
SVN revision: 68377
2012-02-24 04:31:03 +00:00
Carsten Haitzler f4e71c7abf hermet's code didnt create a bug.. it brought out an existing bug...
FIX!



SVN revision: 68298
2012-02-23 04:20:30 +00:00
Carsten Haitzler bb664dc971 if u deprecate a func in .h - also do it in .c!
SVN revision: 68297
2012-02-23 04:11:04 +00:00
Carsten Haitzler af5309f0a2 no space affter cast
SVN revision: 68296
2012-02-23 04:09:43 +00:00
Carsten Haitzler 0d93e97822 can_focus ne3eds to be actually set - not just tested against
SVN revision: 68295
2012-02-23 04:09:05 +00:00
ChunEon Park ed5c8799f5 elementary/focus - reviewed done!
SVN revision: 68218
2012-02-21 12:36:54 +00:00
Carsten Haitzler 549b50e5ec oops return the focus order no matter what
SVN revision: 68212
2012-02-21 10:55:30 +00:00
Carsten Haitzler 628927d3d4 use focus order to determine if window never focused before instead of
show count. fixes focus problems in elm tests for entries



SVN revision: 68211
2012-02-21 10:54:46 +00:00
Carsten Haitzler 14d2ad43e6 fix up some missing checks.
SVN revision: 68158
2012-02-20 12:23:46 +00:00
Carsten Haitzler 80f5f7ec1d missing EAPI
SVN revision: 68157
2012-02-20 12:17:45 +00:00
Carsten Haitzler 1656bc941d make sure to pass const to these funcs when getting.
SVN revision: 68156
2012-02-20 12:13:08 +00:00
ChunEon Park 991bed89dc elementary/widget - improve coding convention
SVN revision: 67968
2012-02-15 09:02:07 +00:00
ChunEon Park b3af72d606 elementary/widget - fixed to prevent infinite loop.
Now, if user passes the parent object of obj as the sub object, 
then it reverses the obj - subobj relationship.



SVN revision: 67823
2012-02-10 12:29:04 +00:00
ChunEon Park 4c6d88b090 elementary/widget - sorry. I didn't intend this.
SVN revision: 67669
2012-02-01 05:24:59 +00:00
ChunEon Park 4ea4e28f15 elementary/widget - just removed macros duplicated impl.
SVN revision: 67666
2012-02-01 03:07:53 +00:00
ChunEon Park 40e51b5fea elementary/gengrid - deprecated elm_gengrid_item_del()
please use elm_object_item_del() instead



SVN revision: 67621
2012-01-31 03:03:17 +00:00
ChunEon Park fcc6192848 elementary - modified item_del_pre_hook function prototype.
Now it returns the bool value to free the widget item.

Some widget items(i,e genlist) should not be deleted directly when elm_object_item_del is called.
So, if the pre_hook function returns EINA_FALSE, then the widget item will not be deleted.



SVN revision: 67565
2012-01-27 11:56:14 +00:00
ChunEon Park 56a881bd35 elementary/menu, ctxpopup, index, segment_control, diskselector, multibuttonentry, toolbar, naviframe, slideshow, hoversel, filpselector - deprecated xxxx_item_del() APIs.
But instead,  made to use the elm_object_item_del() APIs
for this, elm_widget_item needed to provide elm_widget_item_del_pre_hook.




SVN revision: 67010
2012-01-10 05:02:11 +00:00
ChunEon Park 0f8b78cdd5 elementary - renamed internal callback function
elm_widget_item_disabled_set_hook_set -> elm_widget_item_disabled_hook_set



SVN revision: 67007
2012-01-10 01:00:23 +00:00
ChunEon Park 594430c470 elementary/widget - just renamed internally.
SVN revision: 67006
2012-01-10 00:33:51 +00:00
ChunEon Park aac0e16d03 elementary/widget - +del_pre_hook
now elm_object_item_del is exposed to users, 
this callback is used for widgets to use internally.



SVN revision: 67004
2012-01-10 00:02:58 +00:00
ChunEon Park 923fe0cef6 elementary/widget - modified like freeze_pop.
SVN revision: 66986
2012-01-09 07:03:28 +00:00
Kim Shinwoo 78abd8f634 elementary/widget
Re: [E-devel] [Patch] elc_ctxpopup, using elm_smart_scroller_freeze_set() not elm_object_scroll_freeze_push(), pop()

Signed-Off-By: Kim Shinwoo <kimcinoo.efl@gmail.com>



SVN revision: 66985
2012-01-09 06:59:33 +00:00
Carsten Haitzler 1713de6106 add recursie object find function - it will only look at elm children
not go into edje objects et.c and hunt their children too. should be
more efficient than evas's recursive name finder.



SVN revision: 66591
2011-12-28 06:01:31 +00:00
Carsten Haitzler b8d342e49e add func for recursively finding named widgets.
SVN revision: 66589
2011-12-28 05:51:10 +00:00
ChunEon Park 98686a8dc6 elemenatry/widget - added NULL check
SVN revision: 66322
2011-12-19 07:22:25 +00:00
ChunEon Park 507e025612 elemenatry/elm_widget - removed unnecesary compare.
if the obj is NULL then sd will be NULL also.



SVN revision: 66321
2011-12-19 07:06:22 +00:00
Mike Blumenkrantz 608d52ba61 missed some things with my tooltip api break
SVN revision: 65917
2011-12-05 17:14:07 +00:00
Mike Blumenkrantz ba25d2754d use sub-object-del signal for win stuff
SVN revision: 65910
2011-12-05 15:27:32 +00:00
Mike Blumenkrantz 890a378db7 API BREAK
elm_XXX_tooltip_size_restrict_disable() -> elm_XXX_tooltip_window_mode_set()
elm_XXX_tooltip_size_restrict_disabled_get() -> elm_XXX_tooltip_window_mode_get()


SVN revision: 65909
2011-12-05 15:25:09 +00:00
Mike Blumenkrantz c74f2f3db5 fix super annoying elm_win bug that went something like this:
win_resize_object_add(win, subobj);
object_content_set(otherobj, subobj);
object_del(win);


ERR<21326>:elm-externals elm_widget.c:978 elm_widget_sub_object_del() removing sub object 0xdeadbeef (some_stupid_widget) from parent 0xRRRRRRRR (win), but elm-parent is different 0xFUCKTHIS (NOT EVEN A WIDGET)!


SVN revision: 65884
2011-12-05 04:26:32 +00:00
Mike Blumenkrantz ed23ba2a83 make sub-object delete failure messages even more useful
SVN revision: 65882
2011-12-05 03:27:32 +00:00
Mike Blumenkrantz 6d343a75c5 make sub-object delete failure messages useful
SVN revision: 65881
2011-12-05 03:26:19 +00:00
Jaehwan Kim 546d5e51e5 Bug fix about scrolling wrong location. The main point is to use the UPDATED geometry of the child object, but the geometry has yet to be calculated and is queued for calculation later.
Firstly, for efficiency, we add a Job to calculate the whole canvas. Jobs implicitly coallate work per event loop.
Calcuation of object can be a reasonably intensive set of work.
In the job callback we calculate the whole canvas with evas_smart_objects_calculate() to ensure that all objects have the correct geometry at this point.
Reviewed by Raster.


SVN revision: 65509
2011-11-22 06:37:30 +00:00
Cedric BAIL 22fbd58e71 elementary: fix build of elementary without internationalization.
SVN revision: 65435
2011-11-20 13:58:35 +00:00
WooHyun Jung a8bd6a6ff4 elementary/elm_widget : sd2->parent should be set as NULL after all
focus control is finished.


SVN revision: 65400
2011-11-19 03:50:58 +00:00
WooHyun Jung d6be239f73 elementary/elm_widget : When elm_widget_sub_object_del is called with
focused sub-object, focus should be reverted back to the latest focused object.


SVN revision: 65399
2011-11-19 03:47:27 +00:00
ChunEon Park 63d9164a36 elementray - +2 APIs
elm_object_item_disabled_set/get 



SVN revision: 65324
2011-11-17 01:58:03 +00:00
WooHyun Jung 378ccf637c elementary/elm_widget : Fixed wrong indentation
SVN revision: 64627
2011-11-02 00:36:24 +00:00
WooHyun Jung 18f1dd78a5 elementary/elm_widget : Just changed some Int values to Eina_Bool.
SVN revision: 64626
2011-11-02 00:27:04 +00:00
WooHyun Jung 73408c102b elementary/elm_widget : Focus should be moved by "clicked" not by
"mouse_up". So modified about this.


SVN revision: 64548
2011-10-31 08:26:12 +00:00
Gustavo Lima Chaves e9a1d80e4a [elementary] Fix edje signals leak!!
Besides we free the object pointed by esd, we NEED the right pointer's
value to unregister the signal with
edje_object_signal_callback_del_full().



SVN revision: 64415
2011-10-26 16:57:12 +00:00
Carsten Haitzler ba1d2ac288 make elm widget a bit more paranoid/safe
SVN revision: 64392
2011-10-25 12:30:39 +00:00
Daniel Juyung Seo 9483f54dd1 elm widget.c: Refactorying. Use same variable name as others. Easier to read the code.
SVN revision: 64192
2011-10-20 07:31:37 +00:00
Daniel Juyung Seo 6e2e8e44ae elm widget.c: Set resize_obj first.
SVN revision: 64185
2011-10-19 17:36:51 +00:00
Daniel Juyung Seo 72e463d9b0 elm widget.c: Code refactorying. Check sobj first. We do not need to check sobj twice.
SVN revision: 64182
2011-10-19 17:07:15 +00:00
Iván Briano 057a00829c Get us some nice auto translation scheme
First things first, I'm not sure I'm setting the right variable on
the setlocale() call, so someone more knowledgeable can look at it and fix it.

How this works, you say? Just like elm_object_text_part_set(), except now it
will pass the string given through dgettext() with the given domain (NULL
means it uses whatever the app set with textdomain()), and when changing
language with elm_language_set(), it will re-set the strings with a new
translation.



SVN revision: 64179
2011-10-19 14:17:14 +00:00
ChunEon Park 009d533645 elementary - fixed some logic errors patched by rajeev.r@samsung.com
Hi all,
I found few memory related issues in elementary package when performed static analysis on it.

These issues include:
Array indices getting out of bounds, freed memory address being passed to a function as parameter, memory not getting cleaned up because of earlier return statement.

Issues details:
1. In elm_widget.c inside function elm_widget_signal_callback_del(), it is possible that freed memory address esd is passed to the sd->callback_del_func(). I think it should be data, not esd.
Moreover what if the callback frees memory for data, then the other problem is that the return value is data from the function elm_widget_signal_callback_del() which in my opinion can be a problem.

2. Inside directory src/edje_externals for files elm_genlist.c, elm_notify.c, elm_list.c, elm_thumb.c and elm_map.c, array indices can go beyound bounary.
sizeof() operator for an array of character pointers will return [number of elements in the array * size of (char*)], basically 4 times the number of elements which has been taken care in assertion inside src/edje_extenarnals
while performing assertion but has been missed in the next statement in the loop condition.

3. In file src/lib/elm_config.c inside function _elm_config_profiles_list, freeing of file iterator has been missed out.

Please review the attached patch and let me know your opinion.

Thanks.
Regards,
Rajeev



SVN revision: 63550
2011-09-23 00:02:13 +00:00
Daniel Juyung Seo 93eed9dd9a elm: Removed trailing whitespaces.
SVN revision: 63512
2011-09-21 10:37:23 +00:00
ChunEon Park a1f1eb1689 elementary/elm_object_item - added signal emit func.
SVN revision: 63424
2011-09-16 02:10:07 +00:00
Daniel Juyung Seo 95d188941d elm elm_widget.c: Fixed indentation.
SVN revision: 63361
2011-09-13 16:59:25 +00:00
Mike Blumenkrantz c705290b44 make ELM_CHECK_WIDTYPE & co macros useful. would you believe this macro came from my first ever code patch :D
SVN revision: 63334
2011-09-12 02:06:27 +00:00
WooHyun Jung d20294db8e elementary : Elementary focus can be controlled only when top window's
canvas gets focus. If elementary's focus control is tried with
unfocused canvas, newest_focus_count is only updated.


SVN revision: 63245
2011-09-07 06:15:55 +00:00