Commit Graph

252 Commits

Author SHA1 Message Date
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