Commit Graph

218 Commits

Author SHA1 Message Date
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
Tom Hacohen e36e207812 Elm tooltip: Added checks if the object passed is an elm object.
SVN revision: 62919
2011-08-28 14:12:38 +00:00
Daniel Juyung Seo 2d8183991e elm: Removed trailing whitespaces.
Raster finished accessibility. So I fixed it too.


SVN revision: 62737
2011-08-24 08:11:58 +00:00
Carsten Haitzler 27d751a236 and now add custom access info for items too and clean up nicely.
SVN revision: 62734
2011-08-24 06:39:29 +00:00
Carsten Haitzler a3592b4da6 and now add a "clicked" say... when u click.
SVN revision: 62587
2011-08-19 11:47:30 +00:00
Mike Blumenkrantz 49ab1fb009 clean up some of this horrific function pointer debacle
SVN revision: 62322
2011-08-10 23:43:50 +00:00
WooHyun Jung bda792c39a elementary : elm_win didn't be focused/unfocused following the focus
state of its ecore_evas.


SVN revision: 62235
2011-08-09 08:36:02 +00:00
Carsten Haitzler 465ca66ed3 we really should focus when we release mouse AND on_hold is... NOT
set. happy happy joy joy.



SVN revision: 62197
2011-08-08 10:32:32 +00:00
WooHyun Jung cf9f98b706 elementary : Partly rollback for about the feature "focus movement by
arrow keys". There is a better way to support this feature, so
implementing it now.


SVN revision: 62168
2011-08-06 07:39:31 +00:00
WooHyun Jung 85351c10c5 elementary : Focus movement is possible with arrow keys. You can check
this feature in elementary_test -> focus. 


SVN revision: 62125
2011-08-05 08:25:07 +00:00
ChunEon Park 646f514d34 elementary/elm_widget - patched by hyoyoung.chang@samsung.com
[E-devel] [patch] elm_widget - elm_widget_type_unregister

Dear developers.

This patch is adding a api to elm_widget.
In elm_widget, there is an api to register widget type to elementary's own
list.
However it doesn't provide unregister api.
So I made this patch.

Most of case, it's not needed. But in some case, it's useful.
(such as elm objects in DSO, if a DSO unloaded, registered widtype is
invalidated)

Thank you



SVN revision: 62099
2011-08-04 17:10:17 +00:00
ChunEon Park d16f2e9938 elementary/elm_widget - implemented elm_wiget_item_content_set_hook_set series.
SVN revision: 62095
2011-08-04 15:15:40 +00:00
ChunEon Park 4f559a7cdb elementary/elm_widget_item - wrapped the elm_widget_item with elm_object_item
But wonder, is it really needed the auto casting macros?

Why user not just use the elm_widget_item directly
and make their item data structures dangled to elm_widget_item just like smart object?



SVN revision: 62079
2011-08-04 05:06:02 +00:00
ChunEon Park bcd5e510b7 elementary - just renamed paramenter names for consistency.
SVN revision: 62053
2011-08-03 12:27:57 +00:00
ChunEon Park f14c66d340 elementary/elm_object_item - modified for consistency (naming, macros)
SVN revision: 62050
2011-08-03 11:55:24 +00:00
Daniel Juyung Seo 2f2ebe1835 elm focus: Added elm_object_focus_set() API. Use this instead elm_object_focus/unfocus().
SVN revision: 62049
2011-08-03 11:46:23 +00:00
ChunEon Park 1acea3d138 elementary/common - exported Elm_Object_Item type and a few common item APIs.
SVN revision: 62047
2011-08-03 09:34:00 +00:00
Carsten Haitzler 4f64dc8441 fix re-focusing of widgets once inlined window is focus. kind of
tricky requiring a 2nd shadowed parent.



SVN revision: 61989
2011-08-02 10:34:30 +00:00
Carsten Haitzler 99a6dcc101 spacing fix.
SVN revision: 61888
2011-07-29 11:21:43 +00:00
WooHyun Jung b1dde8fb29 elementary : Modified comments and removed trailing white spaces :)
SVN revision: 61839
2011-07-28 08:14:30 +00:00
WooHyun Jung 73057c35bd elementary/elm_main : Add elm_object_tree_unfocusable_set/get. This
API will set an object and its child objects to be
unfocusable/focusable.


SVN revision: 61838
2011-07-28 06:58:29 +00:00
ChunEon Park 2b8ae14cd2 elementary - added common APIs elm_object_content_set/get/unset
Now need to widgets use them. 



SVN revision: 61802
2011-07-27 09:49:14 +00:00
Mike Blumenkrantz 54f1e32c17 THE MOST ANTICIPATED COMMIT OF 2011: HUGENORMOUS TOOLTIPS!!!!!!
these bad boys are so big and pixelthirsty they can't be constrained by a regular canvas or window, they use OVERRIDE REDIRECT WINDOWS. not only that, they totally exceed the boundaries of what a reasonable function name length could be. 50 character function name limit? puh-leeze. these guys don't care what side of the screen they're even on so long as they get to wade into the thick of the action and block out each and every crappy non-efl application behind them. and that's when they're in good moods. you don't even want to know what happens when you piss these guys off.


SVN revision: 61735
2011-07-26 09:38:23 +00:00
WooHyun Jung 26d14e25c9 elementary/elm_widget : add focus_disabled_handle.
SVN revision: 61270
2011-07-12 08:22:16 +00:00
WooHyun Jung 094e70883a elementary/elm_widget : When elm_win sets as disabled,
elm_widget_focus_cycle does nothing. So should be separated as sepcial
case.


SVN revision: 61169
2011-07-09 05:13:35 +00:00
WooHyun Jung e1aed4de50 elementary/elm_widget : One of parents sets as disabled, focus_steal
should be ignored.


SVN revision: 61165
2011-07-09 02:26:49 +00:00
Daniel Juyung Seo a4ba91dd39 elm conform: Eina_Bool parameter is added to API
elm_widget_show_region_set to set the show region always. Earlier, the
API expects some change, to redo the job. Patch by Prince Kumar Dubey
<prince.dubey@samsung.com>

------- Original Message -------
Sender : PRINCE KUMAR DUBEY<prince.dubey@samsung.com>
Date : 2011-05-20 17:41 (GMT+09:00)
Title : [E-devel] [Patch] elm_conform patch

Hi Mr Seo,
Can you please send the attached patch of elm_conformant to EFL ope-src community.
Change Log:
Eina_Bool parameter is added to API elm_widget_show_region_set to set
the show region always. Earlier, the API expects some change, to redo the job.
This enhancement is already approved by raster in gerrit review.

Thank you.
Regards,

Prince


SVN revision: 61148
2011-07-08 07:50:36 +00:00
WooHyun Jung a36e9072b6 elementary/elm_widget : Fix _newest_focus_order_get, it should not
return disabled object


SVN revision: 61033
2011-07-05 07:59:01 +00:00
Tom Hacohen 4b0af66c91 Elementary: Rename elm_object_label_* -> elm_object_text_part_*.
This name is better as it also applies for entries, and not just
for labels.

SVN revision: 60975
2011-07-04 09:18:16 +00:00
WooHyun Jung eb919f67b6 elementary/elm_widget.c : fix wrong indentation :)
SVN revision: 60912
2011-07-01 09:10:11 +00:00