Commit Graph

52 Commits

Author SHA1 Message Date
Carsten Haitzler 59e8bc5a35 Fix elm to use key not keyname (so xmodmap works) 2013-07-31 15:16:41 +09:00
Daniel Juyung Seo f1b685897d elm: do not declare SIG_FUCSED/SIG_UNFOCUSED if the const char is not used more than once.
ctxpopup, fileselector_button, naviframe, player, popup, bubble, button, calendar, check, clock, colorselector, datetime, diskselector, flipselector, gengrid.
2013-06-10 14:13:55 +09:00
Daniel Juyung Seo 8cf2c8a422 calendar, check, clock, colorselector, datetime, diskselector, flipselector, gengrid: added "focused" and "unfocused" documentations. 2013-06-09 18:55:42 +09:00
Leif Middelschulte d031934ff4 Fix segfault related to strdup.
Summary: This patch fixes a segfault that happens when you create a flipselector theme without an "elm.top" part.

Reviewers: cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D156
2013-06-04 12:09:47 +02:00
Daniel Juyung Seo df2b288846 elm_flipselector.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:52:32 +09:00
Daniel Juyung Seo 82ecdfbb25 elm popup,flipselector: removed unnecessary type casting and type check. 2013-05-27 01:20:05 +09:00
Daniel Juyung Seo ac25946a19 elm: introduce ELM_FREE_FUNC for code quality enhancement.
There are pros and cons but this
1. reduces human mistakes.
2. enhances readability.
3. enhances code quality.
4. removes future bug.
5. was adopted from enlightenment.

This is not all. I will work on enhancing elementary more and more.
2013-05-22 02:24:02 +09:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Daniel Juyung Seo 74b3eed5fd elm: print the error message inside elm_widget_sub_object_add().
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
   Elm devs should fix it beforehand.
   So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
2013-04-03 11:28:53 +09:00
Tom Hacohen d75cb616da Change usage of eo_do_super to the new prototype. 2013-03-18 16:15:12 +00:00
Gustavo Lima Chaves 312d0217a0 An internal layout error, on a widget set, is a CRITICAL error. 2013-03-01 23:04:31 -03: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
Daniel Juyung Seo e1738c875c elm flipselector: Added const for user data. This does not break API.
SVN revision: 82962
2013-01-18 00:48:27 +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 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 30dba54610 elm: Fixed indentations for EINA_LIST/INLIST_FOREACH(_SAFE).
SVN revision: 77244
2012-10-01 07:36:27 +00:00
Carsten Haitzler b3b9246eda fix 2 flipselector issues.
1. on shutdown it calls lots of selected callbacks as it delets items
- wrong.
2. segv waiting to hapen due to list management (brian wang report).



SVN revision: 74956
2012-08-07 03:59:02 +00:00
Gustavo Lima Chaves 84b23046da [elm] Now those comments make less sense, remove.
SVN revision: 74768
2012-08-01 21:05:16 +00:00
Gustavo Lima Chaves 33a10445fd [elm] Flipselector inheritable.
SVN revision: 74755
2012-08-01 21:03:21 +00:00
Gustavo Lima Chaves 584c53c1be [elm] New elm_widget_add() usage spread.
SVN revision: 74148
2012-07-18 21:03:39 +00:00
Gustavo Lima Chaves ece6378d0c [elm] Unb0rk flip selector.
Patch by me and Ingvaldur Sigurjonsson (thanks for working on the
issue exactly when I tackled it :)).



SVN revision: 72885
2012-06-26 14:28:59 +00:00
Carsten Haitzler 6649c23e78 fix infinite loop+stack push until segv... thanks to new object infra.
:)



SVN revision: 71266
2012-05-21 06:53:35 +00:00
Gustavo Lima Chaves 728c301be7 [Elm] Flip selector now a layout.
SVN revision: 70738
2012-05-03 22:44:06 +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 0345d5d49d [Elm] Flip selector now a layout.
SVN revision: 70661
2012-05-02 17:01:25 +00:00
Carsten Haitzler 3a7b769a63 use the new escape text set to clear up issues if theme has TEXT vs
TEXTBLOCK items and handling escapes so text is consistend across elm.
fiuxes the fileselector issues kai reported.



SVN revision: 70362
2012-04-20 12:51:10 +00:00
Daniel Juyung Seo 91d43ae017 elm: Set timer/animator to NULL after they're deleted.
SVN revision: 69796
2012-03-30 12:31:11 +00:00
Jiyoun Park f0c18072f9 remove elm_flipselector_interval_set/get
SVN revision: 69291
2012-03-13 10:13:34 +00:00
Jiyoun Park 8a2ffb24a7 remove deprecated function related with elm_flipselector and elm_factory
SVN revision: 68827
2012-03-06 12:58:07 +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 1869d80886 elementary/flipselector
elm_flipselector_interval_set -> elm_flipselector_first_interval_set
elm_flipselector_interval_get -> elm_flipselector_first_interval_getw



SVN revision: 68752
2012-03-06 00:27:33 +00:00
ChunEon Park c5232c4741 elementary - removed unnecessary checkings
SVN revision: 68393
2012-02-24 08:53:01 +00:00
ChunEon Park c0d05b3525 elementary/flipselector - + disable/enable func
SVN revision: 68155
2012-02-20 12:04:29 +00:00
ChunEon Park 9beaca57f7 elementary/flipselector - cleanup code
SVN revision: 68152
2012-02-20 11:42:49 +00:00
ChunEon Park 1483d47385 elementary/flipselector - reviewed APIs
SVN revision: 68070
2012-02-17 12:40:48 +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 99023b8077 elementary/ctxpopup, flipselector - applied elm_object_item common apis.
SVN revision: 65325
2011-11-17 02:16:38 +00:00
ChunEon Park 515786327c elementary/flipseletor - applied elm_object_item,
applied elm_object_item_text_set/get APIs and deprecated elm_flipselector_item_label/set/get APIs. 



SVN revision: 65277
2011-11-16 01:39:39 +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
Carsten Haitzler 0678344e96 fix flipselector to select a nearyby item if deleted and its current.
SVN revision: 61801
2011-07-27 09:43:09 +00:00
Gustavo Lima Chaves ee6c3bffca [elementary] Documenting/exemplyfing flip selector's API:
- elm_flipselector_add
 - elm_flipselector_first_item_get
 - elm_flipselector_flip_next
 - elm_flipselector_flip_prev
 - elm_flipselector_interval_get
 - elm_flipselector_interval_set
 - elm_flipselector_item_append
 - elm_flipselector_item_del
 - elm_flipselector_item_label_get
 - elm_flipselector_item_label_set
 - elm_flipselector_item_next_get
 - elm_flipselector_item_prepend
 - elm_flipselector_item_prev_get
 - elm_flipselector_item_selected_get
 - elm_flipselector_item_selected_set
 - elm_flipselector_items_get
 - elm_flipselector_last_item_get
 - elm_flipselector_selected_item_get



SVN revision: 61256
2011-07-11 21:06:04 +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
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 b880342a74 elementary - entry, genlist, gengrid, image, icon, hover, frame, diskselector, index, layout, label, conform, flip, flipselector - removed white spaces
SVN revision: 58252
2011-04-01 11:32:33 +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
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