Commit Graph

368 Commits

Author SHA1 Message Date
cnook 18ac67edd1 From: cnook <kimcinoo@gmail.com>
Subject: [E-devel] [Patch][elm_list] bug fix: crash occurs when
container which contains the elm_list is deleted on the "elm_list item
clicked" callback

I have resolved the elm_list issue(goto ELM_LIST_CRASH_ISSUE_MAIL below, I
sent mail but I cannot find the previous mail -_-;).
It would be related with double free issue. In the "sub-obejct-del"
callback which name is _sub_del() sets item->icon to NULL.
And in the EVAS_CALLBACK_MOUSE_UP callback funtion which name is
_mouse_up() calls evas_object_unref();
It would try to free the item->icon but the item->icon is already set to
NULL. So.. the crash would occur..



SVN revision: 69555
2012-03-22 05:58:49 +00:00
cnook 6b592fcea5 From: cnook <kimcinoo@gmail.com>
Subject: [E-devel] [Patch][elementary] elm_list.c - item_content_set()
related.

The Eina_Bool item->dummy_icon and item->dummy_end of Elm_List_Item
indicate whether the content has REAL object or not.
- "not" means.. if elm_object_item_part_content_set(); is called with
NULL content, the Elm_List set the swallow part with
rectangle which has alpha value 0 and the item->dummy_icon or
item->dummy_end is set to EINA_TRUE. -
But in the item_content_set(); it works the opposite way. So when
content set with NULL value the flag should be EINA_TRUE.



SVN revision: 69535
2012-03-21 10:41:42 +00:00
Daniel Juyung Seo 676cf93ec3 elm list: Added elm_list_first/last_item_get() APIs. I know we freezed API but they are so primitive and necessary for 1.0
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69505
2012-03-19 07:27:53 +00:00
Jiyoun Park c421626833 remove elm_list_always_select_mode_get/set deprecated API
SVN revision: 69330
2012-03-14 11:13:24 +00:00
Jiyoun Park d16e5bf412 remove code related with
elm_list_item_disabled
elm_list_item_XXX
which was deprecated


SVN revision: 69109
2012-03-09 15:03:18 +00:00
Jiyoun Park ab59567695 remove deprectated function related with elm_list_item_base_get & elm_mapbuf_content_
SVN revision: 69084
2012-03-09 09:35:21 +00:00
Mike Blumenkrantz 4b8fcf7430 seriously file globbing. another day would have been much better.
SVN revision: 68991
2012-03-07 16:18:38 +00:00
Mike Blumenkrantz 80d8165a15 wtf globbing y u no work???
SVN revision: 68983
2012-03-07 16:05:28 +00:00
Hyoyoung Chang abe3dd222a From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_list - add select_mode_set and some
remove deprecated apis in examples

Like other widget (genlist, gengrid...), I add select_mode to elm_list.

+elm_list_select_mode_set(Evas_Object *obj,
Elm_Object_Select_Mode_Type mode)

+EAPI Elm_Object_Select_Mode_Type
+elm_list_select_mode_get(const Evas_Object *obj)

And I removed deprecated apis (no_select, always_select) in examples
and edje_externals.



SVN revision: 68971
2012-03-07 15:22:12 +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
ChunEon Park c5232c4741 elementary - removed unnecessary checkings
SVN revision: 68393
2012-02-24 08:53:01 +00:00
ChunEon Park fd909fc341 elementary/list - deprecated elm_list_item_del()
please use elm_object_item_del().



SVN revision: 67598
2012-01-30 06:06:03 +00:00
Carsten Haitzler 4dcc354c80 deprecate more list item funcs. replace with object item ones (for
cursors).



SVN revision: 67380
2012-01-20 10:13:56 +00:00
ChunEon Park 8e4a2fcbe9 elementary/toolbar, diskseletor - deprecated tooltip APIs
SVN revision: 67127
2012-01-12 08:25:12 +00:00
ChunEon Park 3d44aa9d9b elementary/list - deprecated tooltip APIs & updated doc
SVN revision: 67124
2012-01-12 07:51:15 +00:00
ChunEon Park a3935da066 elementary/list - internal item type chage regarded to Elm_Object_Item for more less casting!
SVN revision: 67111
2012-01-12 03:18:43 +00:00
ChunEon Park 11282d3953 Elementary/list - Elm_List_Item -> Elm_Object_Item
SVN revision: 67110
2012-01-12 03:03:56 +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
Carsten Haitzler 4390f8f16f ooh deprecate elm_list calls than can be done with elm_object_item
stuff :)



SVN revision: 66796
2012-01-03 13:13:39 +00:00
Carsten Haitzler e4bfe66bfe deprecate 2 callls already using the new infra
SVN revision: 66788
2012-01-03 11:48:34 +00:00
Carsten Haitzler e7e7a55d00 put notes in elm_list.c as to what to do.
SVN revision: 66777
2012-01-03 05:28:34 +00:00
Carsten Haitzler a13a0b4a0f deprecate disabled list item apis - use object item.
SVN revision: 66772
2012-01-03 04:17:32 +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 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
Daniel Juyung Seo 75481b9870 elm list: Removed deprecated signals.
SVN revision: 65794
2011-12-02 01:54:28 +00:00
Mike Blumenkrantz 88bbad2635 add VIEW() and WIDGET() macros for use with Elm_Widget_Items to create more consistency, reduce typing, and increase readability
VIEW(X) = X->base.view (visible evas object)
  WIDGET(X) = X->base.widget (owner widget)

also a demo of the oxford comma for seoz


SVN revision: 64220
2011-10-21 01:08:01 +00:00
Mike Blumenkrantz 4ad1c5f0db create and use ELM_WIDGET_ITEM for elm widget structs to ensure location/name
SVN revision: 64218
2011-10-21 00:45:19 +00:00
Daniel Juyung Seo a9e92c7bc3 elm genlist/list/gengrid: Changed edge smart callback name. 'edge' callback is not scrolling. So "scroll,edge,up" -> "edge,up". elm_scroller already used this name.
SVN revision: 64200
2011-10-20 16:42:42 +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
Mike McCormack beafec3884 elementary: Improve include file modularity
Move stuff out of elm_priv.h

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 63900
2011-10-07 05:56:07 +00:00
Daniel Juyung Seo 12f074553c elm list: Fixed elm_list_scroller_policy_set(). Closed ticket #842.
SVN revision: 62956
2011-08-29 16:13:35 +00:00
Daniel Juyung Seo 954d3e31cf elm list: Fixed elm_list_item_disabled_set() API. Closed trac #844.
SVN revision: 62932
2011-08-29 05:10:20 +00:00
Daniel Juyung Seo 9692d6d2d4 elm list/gengrid: Fixed typo in internal functions and variables. hilight -> highlight.
Hilight is a common mis-spelling of highlight. http://en.wiktionary.org/wiki/hilight 


SVN revision: 62830
2011-08-25 17:19:22 +00:00
Daniel Juyung Seo 0e3f0d69c6 elm list: Changed elm_list_item_base_get() to elm_list_item_object_get() like other widgets such as gengrid/menu/genlist/slideshow/segment_control.
I also changed all related code in trunk.
Deprecated elm_list_item_base_get(). I will remove this later.


SVN revision: 62730
2011-08-23 16:55:28 +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
Mike Blumenkrantz 47574fccbf add new signal for list/genlist/gengrid: "activated"
this signal is called whenever an item receives either a double click or selection+(enter/spacebar/return)

this commit also unifies the click/enter/spacebar/etc event api for these widgets, including removing the double click signal from keypress events and removing the 'clicked' signal from double click events


SVN revision: 61720
2011-07-26 01:49:24 +00:00
Bruno Dilly 6a1768ead2 Elementary: List Documentation
SVN revision: 61711
2011-07-25 20:47:59 +00:00
ChunEon Park 5e8a3cf674 elementry/list - added missing a line.
When raster modified to use standard macro, 
this line is removed also. 



SVN revision: 61221
2011-07-11 02:26:27 +00:00
Daniel Juyung Seo bc07b91b0e elm genlist/list/gengrid: Removed deprecated signal "clicked". Use
"clicked,double" instead.

The name was wrong and I added a proper signals few months ago. Not I
removed wrong signals.


SVN revision: 61115
2011-07-07 12:49:39 +00:00
ChunEon Park ccd3773962 elementary/list - just removed empty lines
SVN revision: 60125
2011-06-09 10:11:25 +00:00
ChunEon Park dce560688a elementary/list - fixed for potential duplicated deletion (this is patched by jae.hwan.kim@samsung.com)
since the list calls the unref, it could be deleted multiple times 
when user delete the list in it's callback function. 




SVN revision: 60124
2011-06-09 10:08:58 +00:00
ChunEon Park a1d5dfb531 elementary/list - avoid unnecessary checking when deleting sub-objects
SVN revision: 60120
2011-06-09 08:36:55 +00:00
Daniel Juyung Seo 04b491da11 Elementary: Changed homogenous to homogeneous.
Deprecated existing APIs but not removed them. They will be removed
sometime later or when elm 1.0 is released. And added new APIs.
I fixed box, table and toolbar. I will modify other codes in trunk soon.


SVN revision: 59160
2011-05-04 04:53:39 +00:00
ChunEon Park d45f0154cf elementary / menu, list, index, pager - modified to use signal callback table.
SVN revision: 58807
2011-04-21 15:57:03 +00:00
Daniel Juyung Seo ebfa1123c0 Elementary list: Fixed doxygen for "clicked,double" callback.
SVN revision: 58595
2011-04-12 14:16:41 +00:00
ChunEon Park c7c99ddea6 elementry / entry, menu, notify, list, gengrid, actionslider, image, icon, anchorview, fileselector_button, calendar, photocam, anchorblock,
button, map, colorselector, hover, photo, diskselector, index, bubble, pager, hoversel, check, scrolled_entry, clock, flipselector

	    updated signal callback list in the  doxygen. 

            should update genlist, progressbar ... 



SVN revision: 58335
2011-04-04 16:34:18 +00:00
Daniel Juyung Seo 16848f903d Elementary: Fixed wrong smart callback signal name. clicked -> clicked,double
Unified double-click smart callback signal name to "clicked,double".
Wrong signal name "clicked" is still there.
But this will be removed soon after fixing all codes in trunk.


SVN revision: 58293
2011-04-03 09:36:47 +00:00
Daniel Juyung Seo 8a108db5ab Elementary: Use pre-defined type Edje_Signal_Cb instead of describing all of its parameters.
SVN revision: 58283
2011-04-03 05:32:17 +00:00
ChunEon Park 5176a3f867 elementary / entry, list, scroller, fileselector_button, config, photocam, map, pan, bg, store, priv, pager, conform, box, clock, flipselector
fixed indentation, removed white spaces.



SVN revision: 58267
2011-04-01 19:08:56 +00:00
ChunEon Park 160084626b elementary / menu, notify, list, panes, module, map, pager, panel, mapbuf - removed white spaces
SVN revision: 58251
2011-04-01 11:26:58 +00:00
Carsten Haitzler f74c18a02e make all widgets use a standard setup macro. cuts code down and
handles null parent errors, null wd alloc, null obj create errors etc.



SVN revision: 58242
2011-04-01 06:08:02 +00:00
ChunEon Park e638d13aec elementary/list - fixed minor error.
moved _theme_hook to where after scroller has child. 



SVN revision: 57684
2011-03-11 04:54:39 +00:00
Daniel Juyung Seo c4dda39a0e Elementary elm_list.c: Check null before use it.
SVN revision: 57656
2011-03-10 07:30:02 +00:00
Carsten Haitzler 309d51b3ed and now use the ref/unref goodness from evas to avoid deleting oneself
while doing things.



SVN revision: 57618
2011-03-09 09:56:18 +00:00
Carsten Haitzler d80e09da23 fmting
SVN revision: 57580
2011-03-08 11:48:12 +00:00
Carsten Haitzler 3889d7b22c fmting.
SVN revision: 57579
2011-03-08 11:47:45 +00:00
Tom Hacohen c04d8990f0 Elementary: Added on-the-fly UI-mirroing support to all of the widgets
SVN revision: 56846
2011-02-09 16:14:02 +00:00
Tom Hacohen 99da5b6541 Elementary: Added ui-mirroring support for all the widgets.
SVN revision: 56803
2011-02-08 12:08:28 +00:00
Tom Hacohen 1fc531aabf Elementary: Adjusted elm_list to work with the changes in els_scroller.
SVN revision: 56293
2011-01-25 02:19:03 +00:00
Carsten Haitzler 000843b6f0 safety - check wd return for null.
SVN revision: 56056
2011-01-12 10:04:11 +00:00
3v1n0 ff67ce31fb Always check for valid evas object.
If you try to create a new widget, you must be sure that the parent
is really an evas object.

With the previous implementation it was possible to call an _add
function for an elementary widget with any non-null pointer as parent
eventually causing crashes (like with the elm_box).


SVN revision: 55521
2010-12-12 19:12:43 +00:00
WooHyun Jung 34a3ad17b9 From: WooHyun Jung <wh0705.jung@samsung.com>
Subject: [E-devel] [PATCH] Some modifications for adapting
elm_longpress_timeout_get().

 I made a patch for adapting elm_longpress_timeout_get() function to all
 winsets, using long press event. 
 
 And I checked one warning in elm_entry.c , so I modified it. 
 


SVN revision: 55339
2010-12-07 05:04:45 +00:00
helen 030b697366 EINA_SAFETY_ON_NULL_RETURN
Checking parameters with EINA_SAFETY_ON_NULL_RETURN and
EINA_SAFETY_ON_NULL_RETURN_VAL in Elementary

SVN revision: 55188
2010-12-03 14:08:33 +00:00
Tiago Rezende Campos Falcao a609cc1b69 Elementary patch for supporting keypad
Author: Jihoon Kim <jihoon48.kim@samsung.com>

SVN revision: 55062
2010-11-29 13:56:33 +00:00
Tiago Rezende Campos Falcao 80fc46f893 Add elm genlist scroller policy setter/getter
Author: "Marco Trevisan (Treviño)" <mail at 3v1n0.net>

And add NULL check in elm_list scroller policy getter/setter.

SVN revision: 54797
2010-11-22 15:24:58 +00:00
Carsten Haitzler 39f48066ff set scale on scrollers on re-theme and on list items.
SVN revision: 54775
2010-11-22 09:41:37 +00:00
Gustavo Lima Chaves 646b4007ec Disable hook for elm lists in.
SVN revision: 54680
2010-11-18 10:01:05 +00:00
Bruno Dilly 4e0df34976 Fix List keyboard navigation on horizontal mode
Closes ticket #619



SVN revision: 54411
2010-11-10 18:04:51 +00:00
Bruno Dilly 715dbba805 This small patch allows to get a smart callback when the scrollers in an
elm_list or in an elm_genlist fire the edge,{top,bottom,left,right}
signals, backporting them to the list object.

The new smart callbacks called are:
 · "scroll,edge,top" - the list is scrolled until the top edge
 · "scroll,edge,bottom" - the list is scrolled until the bottom edge
 · "scroll,edge,left" - the list is scrolled until the left edge
 · "scroll,edge,right" - the list is scrolled until the right edge

SVN revision: 3



SVN revision: 54393
2010-11-10 02:48:59 +00:00
Carsten Haitzler 78cc8ef853 idea from seokjae but majorly changed patch - use on_hold as
originally intended for holding actions in this case, and also add
momentum acceleration at the same time.



SVN revision: 54356
2010-11-09 06:07:07 +00:00
Bruno Dilly 7c5152ef83 Add cursor getters for elm widgets and items
SVN revision: 54164
2010-11-05 00:46:54 +00:00
Bruno Dilly b8200447ef Add bounce getter for remaining widgets
SVN revision: 54163
2010-11-05 00:45:59 +00:00
Tiago Rezende Campos Falcao 5ef35174ba Add checkers to list items
SVN revision: 54093
2010-11-02 11:26:56 +00:00
Iván Briano ea3dda3527 And let's not expose internal objects when setting signal callbacks on widgets.
SVN revision: 54004
2010-10-29 18:21:58 +00:00
Tiago Rezende Campos Falcao ba89544efc list, genlist and gengrid, if no item is selected
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

If no item is selected, pressing up it will select the first and down
will select the last item

SVN revision: 53924
2010-10-27 14:38:57 +00:00
Tiago Rezende Campos Falcao bc44338213 Deselect all items when press Esc
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

list, genlist, gengrid: Using _deselect_all_item

SVN revision: 53923
2010-10-27 14:38:54 +00:00
Tiago Rezende Campos Falcao 15d0643b10 Getters should received const pointers
Only two getters continue without const:
* elm_theme_get
Need name review, or comportament.

* elm_toolbar_item_menu_get
Need comportament review, but will be fixed by bdilly.

SVN revision: 53874
2010-10-25 14:34:22 +00:00
Tiago Rezende Campos Falcao 4672a51b0c Remove tests == 0 and != 0
SVN revision: 53787
2010-10-22 21:41:27 +00:00
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Rafael Fonseca a7790e9dd7 Better way of setting bounce from profile.
Change pointed out by k-s.



SVN revision: 53744
2010-10-21 19:57:43 +00:00
Rafael Fonseca 3eaa37aa3b Use bounce information from profile in the scrollers.
Instead of just setting the bounce property to its scroller, each widget now
first checks in the profile used whether bounce is enabled or not.



SVN revision: 53730
2010-10-21 18:54:47 +00:00
Gustavo Lima Chaves d197de1f28 Missing const here.
SVN revision: 53681
2010-10-20 16:51:26 +00:00
Gustavo Lima Chaves 442cb3b9da Introducing item_disabled_set() for elm_lists, too.
I'm not implementing the default list themes WRT to it right now,
though, I get back to it soon (just implementing it for a new widget).



SVN revision: 53641
2010-10-19 20:19:57 +00:00
Gustavo Lima Chaves 7d4f42fe00 New list layout: horizontal.
Now one can set lists to dispose its items horizontally, too.
elm_list_horizontal_mode_set(), whose name was bogus and would
conflict with the new methods, got renamed to elm_mode_set(), along
with the getters.

This is coming along to help a widget using lists which has a
horizontal mode. The default theme for horizontal items is kinda ugly
for default lists, but one can always improve it :) (in a hurry
now).

Also, I'm introducing a new mode for Elementary lists: expand.



SVN revision: 53640
2010-10-19 20:19:12 +00:00
Lucas De Marchi 473a59fbcd remove ugly chars
\t and trailing whitespaces, stay away from me



SVN revision: 53446
2010-10-15 11:51:15 +00:00
Lucas De Marchi 0b2b25cb81 formatting
SVN revision: 53444
2010-10-15 11:36:35 +00:00
Lucas De Marchi 7c0b627b5a remove trailing whitespaces
SVN revision: 53443
2010-10-15 11:34:22 +00:00
Lucas De Marchi d52377931c swipe event for the elm_list
By: ceolin <flavio.ceolin@profusion.mobi>



SVN revision: 53442
2010-10-15 11:25:02 +00:00
Bruno Dilly 294fa1d974 Clean elm of undefined assigned values
SVN revision: 53398
2010-10-14 14:11:53 +00:00
Bruno Dilly c7c7ceb547 Add list item check on tooltip and cursors functions
SVN revision: 53395
2010-10-14 14:09:49 +00:00
Tiago Rezende Campos Falcao 3d8c3dfc6f List with navigation between items
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Up and Down to navigate without multi selection. Hold shift +
up/down to multi select.

SVN revision: 53078
2010-10-05 19:10:08 +00:00
Tiago Rezende Campos Falcao 802673163b elm_list_item_bring_in
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

function bring_in in list, like genlist and gengrid

SVN revision: 53077
2010-10-05 19:10:06 +00:00
Tiago Rezende Campos Falcao 231d40149a List with keyboard scroller
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Keys:
up
kp_up
down
kp_down
left
kp_left
right
kp_right
Page Up
Page Down
Home
End

p.s.: kp = key pad

SVN revision: 53076
2010-10-05 19:10:03 +00:00
Tiago Rezende Campos Falcao 1dada2a0a8 List with els_scroller
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

The list use elm_scroller instead els_scroller like the others. This is
a problem, because the scroller is son of the list, so when you click on
an item, the event will be done in the item (an edje object) that will
pass to the box it is inside, the box will pass the event to the
scroller and then to the list. So, with the event arriving the scroller
first than the list, if you press up, the navigation between item will
not happen because the scroller is treating the event first. So a good
solution is to pass the list to use smart scroller intead elm_scroller
(like genlist and gengrid).

SVN revision: 53075
2010-10-05 19:10:00 +00:00
Tiago Rezende Campos Falcao 8ca4d18a0b Fixing can_focus to the widgets
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

widgets:
anchorblock:    can_focus = EINA_TRUE
anchorview:     can_focus = EINA_TRUE
fileselector:   can_focus = EINA_FALSE
hoversel:       can_focus = EINA_FALSE
notepad:        can_focus = EINA_TRUE
scrolled_entry: can_focus = EINA_TRUE
bubble:         can_focus = EINA_FALSE
calendar:       can_focus = EINA_TRUE
clock:          can_focus = EINA_TRUE
conformant:     can_focus = EINA_FALSE
flip:           can_focus = EINA_FALSE
frame:          can_focus = EINA_FALSE
gengrid:        can_focus = EINA_TRUE
genlist:        can_focus = EINA_TRUE
index:          can_focus = EINA_FALSE
list:           can_focus = EINA_TRUE
layout:         can_focus = EINA_FALSE
map:            can_focus = EINA_TRUE
mapbuf:         can_focus = EINA_FALSE
menu:           can_focus = EINA_FALSE
notify:         can_focus = EINA_FALSE
pager:          can_focus = EINA_FALSE
panes:          can_focus = EINA_FALSE
progressbar:    can_focus = EINA_FALSE
photocam:       can_focus = EINA_TRUE
scroller:       can_focus = EINA_TRUE
table:          can_focus = EINA_FALSE
thumb:          can_focus = EINA_FALSE
win:            can_focus = EINA_FALSE

SVN revision: 52888
2010-09-29 12:22:30 +00:00
김지훈 d99918389f From: 김지훈 <imfine98@gmail.com>
I changed elementary source code related to focus functions.
Eina_Bool is used instead of integer type in those functions.



SVN revision: 52839
2010-09-28 04:28:14 +00:00
Bruno Dilly 89f23acadc Remove some dead assignments from elementary
SVN revision: 52763
2010-09-25 22:07:55 +00:00
Bruno Dilly 3dd29a961c Implements a way to select if we should use ecore_evas for cursor or only engine
With this commit is now possible to not use theme's cursor (default behevior)
that could be overriding cursors defined by the engine.



SVN revision: 52761
2010-09-25 22:03:37 +00:00
Bruno Dilly 816c77b3fa Add cursor support on Elm using ecore_evas
Basically, get the group from widget theme, using the string passed to
elm_object_cursor_set, get hot spots x and y from the theme (keeps the object
and these two integers on cursor struct).
Cursor is set with ecore_evas_object_cursor_set()

Some functions to change style were added to the api.



SVN revision: 52760
2010-09-25 22:01:19 +00:00
김지훈 d5b8d09591 From: 김지훈 <imfine98@gmail.com>
Subject: patch for indentation and using enum in elementary

I send the patch for elementary.
In this patch, I fixed the indentation of Elementary.h.in.
In addition, I use EINA_TRUE or EINA_FALSE instead of 1 or 0.
EVAS_HINT_EXPAND and EVA_HINT_FILL is used instead of 1.0 and -1.0.
Thanks.



SVN revision: 52447
2010-09-19 02:30:14 +00:00
Bruno Dilly 66e512552f Add support on Elm to customized cursors
Widgets can have customized cursors setting it with elm_object_cursor_set.
Widget's item can use elm_X_item_cursor_set to set a different cursor
for each item.
It will work only if HAVE_ELEMENTARY_X for now, but support for themeable
cursors is planned.



SVN revision: 52382
2010-09-17 18:24:10 +00:00
Gustavo Sverzut Barbieri 494c1a6dca Tooltips: split owner/eventarea, allow subitems to have indepentent tooltips.
Now owner widget (elm_widget) is just used to listen for theme changes
and create/destroy the tooltip data. The actual mouse events operates
on all Evas_Object and is the one where tooltip data is actually
stored.

The public API is basically the same, just the event_info is now NULL
to avoid confusion.

The internal API introduces elm_object_sub_tooltip_content_cb_set()
and as the first parameter the eventarea. While this may be confusing,
as the second parameter is the actual elementary object, it is the one
that all other calls receive, like elm_object_tooltip_hide() or
elm_object_tooltip_unset(), thus it does make sense to have such order.

Also internal API, elm_widget_item_tooltip_* functions were
added. They are a variation of the widget API to handle its items, as
such the func() gets one more parameter: item, and the del_cb() gets
the item as event_info (that's why the public widget version got
event_info always NULL, to not confuse with this one!)

Widgets with items that makes sense to have tooltips got extra API:
  * toolbar
  * list
  * gengrid
  * genlist




SVN revision: 52173
2010-09-12 21:05:13 +00:00
Gustavo Sverzut Barbieri 9ed8bf92be Use elm_widget_item common base.
This patch changes all Elm_*_Item to use new infrastructure of
Elm_Widget_Item. This patch is basically a find-and-replace, but even
that was a bit tricky since every code had different names for the
same things, particularly for "view" and "widget" the names ranged
from "o"/"obj" to "base"/"o", quite confusing!

It is worth noting that Genlist and variants that adopted its "item
class" style such as Gengrid and Slideshow already provide a "del()"
callback there and I'm keeping them, however we should reconsider if
it is good to remove them and use elm_widget_item_del_cb_set()
instead. The drawback is that onde would have to set it, while the
other is done automatically when you create the object with the
class. Nonetheless this patch already introduces support to use
elm_widget_item_pre_notify_del(), but it will be void in such code as
nobody ever sets it.

Some new setters and getters were introduced to normalize code... and
they would be required once people write python-bindings for them,
like index and carousel.




SVN revision: 52118
2010-09-10 02:05:45 +00:00
Bruno Dilly f8de57f405 Add elm object signal emit and callback add / del hooks to entry, list and index
SVN revision: 52087
2010-09-09 18:53:36 +00:00
Lucas De Marchi c6a4ea9d2f Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Iván Briano 530a645192 Don't drop selection when dragging from selected item
SVN revision: 50841
2010-08-05 18:17:05 +00:00
Brett Nash de54ffcf23 eina_list: Return false on error.
Maybe Eina_Bool needs a 'file not found' error or something.

SVN revision: 50799
2010-08-04 02:03:45 +00:00
Gustavo Sverzut Barbieri a6be0ef49c Oops, add missing .h and minor issues.
* add const to getter
 * enforce bool is 0/1
 * remove trailing whitespace



SVN revision: 49982
2010-07-01 23:53:17 +00:00
Gustavo Sverzut Barbieri 3a91ec26fb Elm_List separator support.
By: Leandro "acidx" Pereira <leandro@profusion.mobi>


SVN revision: 49981
2010-07-01 23:48:10 +00:00
Cedric BAIL bdf6efa129 * elementary: fix Ecore API changes.
SVN revision: 49860
2010-06-25 09:58:14 +00:00
Iván Briano 99ff1921a9 Standardizing elm_<widget>_{icon,content}_set API
elm_<widget>_icon_set was changed to the better form and the signals
was passed to hidden icons when one icon is changed/removed.
Moreover, when changed by {icon,content}_set the old {icon,content}
will be deleted.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49706
2010-06-16 20:58:09 +00:00
Luis Felipe Strano Moraes 8e692f5686 Create elm_list_item_sorted_insert
Function that include items to an elm list in a sorted way defined by
an Eina_Compare_Cb function.

Author: Bruno Dilly <bdilly@profusion.mobi>




SVN revision: 48777
2010-05-12 15:43:54 +00:00
Carsten Haitzler d888b71dba theme -> can specify a new theme for an object andit gets inherited. need to
add tests.



SVN revision: 48771
2010-05-12 01:03:46 +00:00
Carsten Haitzler 63f9c12ad1 fix list scroller to use ppropeer internal scroller calls.
remove commented out code from elm_scroller



SVN revision: 48712
2010-05-09 10:46:49 +00:00
Iván Briano 2bec9f57d8 Set evas focus for some objects when focused. More will come later.
SVN revision: 48179
2010-04-20 20:03:05 +00:00
Boris Faure 1ca26086db elm: add lots of doc! Thanks to Mike (zmike/discomfitor)
SVN revision: 47944
2010-04-12 08:12:02 +00:00
Iván Briano 07d91767cd Expose elm_list as external
Patch by Thiago Masaki


SVN revision: 47847
2010-04-08 20:53:01 +00:00
Gustavo Sverzut Barbieri 06d14ed245 const and -Wextra, come on guys! :-/
SVN revision: 47409
2010-03-24 03:06:00 +00:00
Carsten Haitzler 9705f7dbe1 (remove useless edje_object_scale_sets's on objects that are not edje objects)
but more importantly - fix list to actually have a specific theme/base for it



SVN revision: 47381
2010-03-23 04:46:53 +00:00
Gustavo Sverzut Barbieri abe1f4275a Typedefs to help bindings, type less and make things easier to identify.
SVN revision: 47292
2010-03-16 15:31:38 +00:00
Carsten Haitzler 5ceae54321 fix more runtime wornings... added ELM_ERROR_ABORT! :)
SVN revision: 47195
2010-03-14 03:48:22 +00:00
Carsten Haitzler 27a1fc9a9c more warning--
SVN revision: 47099
2010-03-10 06:46:28 +00:00
Vincent Torri b07e49d435 remove unused parameter in the library.
I won't do this everyday, and i won't touch the tests.


SVN revision: 47093
2010-03-09 17:51:30 +00:00
Carsten Haitzler d32e700fe3 more warning fixes!
SVN revision: 47076
2010-03-09 11:42:53 +00:00
Carsten Haitzler 91e01aa86e patch from discomfitor <- check type of widget on api call and return if not
the right type



SVN revision: 47073
2010-03-09 06:15:39 +00:00
Carsten Haitzler 6a7271084d slight change in drag events vs scrolling on_hold to fix small "distance
race" issue.



SVN revision: 46505
2010-02-26 06:30:17 +00:00
Tiago Rezende Campos Falcao 448f5e60bc Scroller Policy for List. By Masaki
Author:    Thiago Ribeiro Masaki <masaki@profusion.mobi>

SVN revision: 45337
2010-01-19 18:46:48 +00:00
Carsten Haitzler 5da6adb481 use specific scroller edje groups for list and genlist - add aliases.
SVN revision: 45278
2010-01-18 06:56:06 +00:00
Carsten Haitzler d574bf68f7 1. fix list theme adapting - simply never got callbac ks to handle iot,
that's why!
2. make cmd-line tool to set scale, theme, finger size (more later) - used
this to test this and fix it.
3. cmd-line tool... also uses elm - and... as a result... also has a dialog
sayint its doing something - and... it can get a gui config later too!



SVN revision: 45175
2010-01-15 09:32:43 +00:00
Tiago Rezende Campos Falcao fb2b5b1c5c Elm_List_Item selected getter
SVN revision: 44951
2010-01-07 16:34:19 +00:00
Tiago Rezende Campos Falcao 5d587ae577 Elm_List multi and horizontal getters
SVN revision: 44913
2010-01-05 19:42:04 +00:00
Carsten Haitzler fe9ba3dd4c add more bounce controls
SVN revision: 44533
2009-12-18 02:30:01 +00:00
Carsten Haitzler 162337ae68 patch from luis moraes to fix list deleted macro checks
SVN revision: 44325
2009-12-09 21:54:06 +00:00
Gustavo Sverzut Barbieri 99c5f101e7 fix couple of list issues while deleting during item usage.
now list marks itself as "walking" every time it's usign wd->items,
this way any call to clear or deletion (elm_list_item_del()) will be
postponed using the wd->to_delete list.

please let me know of any bugs you may find.



SVN revision: 44124
2009-12-02 18:59:41 +00:00
Brett Nash 705ee71f24 elm_list: Call the callbacks _last_. Saves segv when the user deletes stuff.
SVN revision: 44037
2009-11-29 00:01:13 +00:00
Brett Nash 2693774336 elm_list: Delete the timer when deleting an item.
SVN revision: 44036
2009-11-28 23:57:54 +00:00
Boris Faure b2c4f81501 elementary: add del_cb to hoversel items
SVN revision: 43550
2009-11-08 22:20:46 +00:00
Jonathan Atton 7be1d94aa2 Elm: use evas_object_event_callback_del_full() everywhere and improve elm_notify
SVN revision: 43217
2009-10-22 22:10:23 +00:00
Christopher Michael 72db117b71 Formatting.
SVN revision: 42731
2009-09-26 19:23:45 +00:00
Carsten Haitzler d32071097c longpress fix for list
SVN revision: 42666
2009-09-24 07:22:58 +00:00
Carsten Haitzler 3167305fa7 fix scroll freeze and propagate to built-in scrollers. also genlist now knows
about dragging items. callbacks for that.



SVN revision: 42342
2009-09-08 06:20:32 +00:00
Carsten Haitzler 5781ad4a3e 1. add scroller test
2. add pagination concept to scroller (only scroll by pages)
3. add longpress callback for list + genlist
4. scroller docs and some empty api calls. 



SVN revision: 42147
2009-09-01 10:42:52 +00:00
Gustavo Sverzut Barbieri 0179fcdd11 optimization: remove list using it's node pointer.
this makes removal order-1 instead of order-N



SVN revision: 41778
2009-08-14 21:03:09 +00:00
Gustavo Sverzut Barbieri 163d1ce756 elm_list: setters for label, icon and end.
This way we can dynamically change the row contents.



SVN revision: 41746
2009-08-13 17:56:07 +00:00
Gustavo Sverzut Barbieri d65e18c875 data_get returns void*, not const void*
It is the convention for generic user data to get as const and return
as not const to avoid useless casts all around.



SVN revision: 41741
2009-08-13 15:15:18 +00:00
Vincent Torri e2be9d2b24 remove trailing spaces
SVN revision: 41261
2009-07-07 06:46:51 +00:00
Cedric BAIL 29adfe9fc8 * elementary: Full switch to Eina data type.
SVN revision: 41081
2009-06-17 15:35:19 +00:00
Carsten Haitzler b68636289b hmm more select issues - put in hilights
SVN revision: 40724
2009-05-18 14:14:33 +00:00
Carsten Haitzler f2a75b0f05 1. configure.ac finally
2. add docsbuilding infra
3. fix list/genlist on code-based select.



SVN revision: 40667
2009-05-15 11:45:14 +00:00
Carsten Haitzler 26b4f340b6 actually give widgets type name strings and set parent by default
SVN revision: 40618
2009-05-13 12:21:52 +00:00
Carsten Haitzler 0523f39faa make lists handle drag+select logic better
SVN revision: 40598
2009-05-12 10:16:49 +00:00
Carsten Haitzler 5c7e2ec144 1. fix box as it didnt hide clipper when it gets empty
2. add bouncing at ends for scroller and config for it
3. fix quicklaunch to be cserver-freidnly thanks to its fork tricks
4. add signals to scroller when scrolling and hitting edges
5. pants.



SVN revision: 40549
2009-05-08 11:27:32 +00:00
Carsten Haitzler 9af8000740 always_select added to normal list too.
SVN revision: 40406
2009-04-27 01:29:02 +00:00
Carsten Haitzler 73f3de55f4 patch from victor to make styles generic - not all widgets support them
tho... but calls to set style are now. old calls are left in place, but
likely will be phased out.



SVN revision: 40317
2009-04-23 04:03:27 +00:00
Gustavo Sverzut Barbieri 17840b8120 list items no keep reference to their node, returns siblings.
SVN revision: 39857
2009-04-04 15:06:58 +00:00
Gustavo Sverzut Barbieri 557a0c1f98 couple of changes and addition.
* list: export label and base object for items

 * list: per-item delete function, cleanup associated data.

 * list: clear.

 * couple of functions return success or failure.

 * win: sticky, lower and raise




SVN revision: 39845
2009-04-03 21:52:01 +00:00
Carsten Haitzler 5eb759a0e9 and fix the updates for vala
SVN revision: 39487
2009-03-15 04:13:08 +00:00
Gustavo Sverzut Barbieri d7829ccd3c use EINA_LIST_FREE()
This macro helps releasing a list of elements in efficient and safe way.



SVN revision: 39217
2009-02-25 20:18:38 +00:00
Gustavo Sverzut Barbieri d1d91b99df Move eina list iterations to EINA_LIST_FOREACH variants.
By using these macros we can avoid errors and if we need to change
things, we do just in the macro definitions.



SVN revision: 39216
2009-02-25 19:50:45 +00:00
Gustavo Sverzut Barbieri 2e62b41b1b major warning + cast cleanup.
* casts: remove internal "Item" and use "Elm_XXXX_Item" for carousel,
   list, genlist and toolbar.

 * warning: fix const on lots of getter apis, the object should be
   const, and not the return! Of course lists that are returned and
   are not supposed to be modified are still returned as const, but
   maybe we should return iterators!

 * list/genlist: fix selected_set() to be a bit (marginally)
   faster. Do not operate if state has not changed and if it did
   changed we're sure we're not in the object->selected list.




SVN revision: 39208
2009-02-25 15:54:26 +00:00
Carsten Haitzler 00f0b4c9cc more genlist testing - deletign items works. not perfect - but working... in
small tests.



SVN revision: 39056
2009-02-17 07:50:35 +00:00
Carsten Haitzler 1099280784 fix some min size calc issues.
fix some theme size calc issues
make all widgets able to... do finger size! this way a ui can be tweaked with
1 value (finger size) if it is to be finger or mouse/stylus driven. and it
was so simple to add in.
work on genlist - beginning to display items and scroll.



SVN revision: 38995
2009-02-11 11:49:43 +00:00
Carsten Haitzler 09ab0fb0df make inwin a bit bigger
make list track sub icon/end for deletion and so on.



SVN revision: 38787
2009-01-25 23:18:25 +00:00
Carsten Haitzler 6a6dee4e08 fix list slowness with edje complaints on min size. also handle sizing icons
down when icon allowed to down-scale.



SVN revision: 38593
2009-01-15 11:34:39 +00:00
Carsten Haitzler d63440b865 list is pretty functional now.
SVN revision: 38509
2009-01-09 07:35:52 +00:00
Carsten Haitzler 2c90cd89ae more list stuff working
SVN revision: 38508
2009-01-09 03:03:36 +00:00
Carsten Haitzler f382576f6a more list work - also some minimal safety stuff.
SVN revision: 38503
2009-01-08 14:29:13 +00:00
Carsten Haitzler 381d0d2e23 beginning of the list widget - includes a scroller and items inside. not
meant for long long long lists of lots of items. not complete yet.



SVN revision: 38488
2009-01-07 13:49:08 +00:00