Commit Graph

58 Commits

Author SHA1 Message Date
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
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 a6183287d3 Add checkers to hoversel items
SVN revision: 54091
2010-11-02 11:26:50 +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 0e436c7431 Clean hoversel_add
SVN revision: 53621
2010-10-19 14:17:11 +00:00
Tiago Rezende Campos Falcao 738bfaa747 Review of content setters, getters and unsetters
Revised the parent, icon, end and content setter and getters of
elementary objects.
Review to smart objects and widgets items will be the next steps.

SVN revision: 53425
2010-10-14 18:54:42 +00:00
Carsten Haitzler 4f3090af01 and handle disables for everything else that has disable hooks.
SVN revision: 53138
2010-10-07 07:44:50 +00:00
Tiago Rezende Campos Falcao 7710ab14f0 Hoversel can have focus
SVN revision: 53072
2010-10-05 19:09:52 +00:00
Tiago Rezende Campos Falcao fc4ca8dfe4 Removing event_hook from hoversel
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Event hook in hoversel is not needed, because the center of the hoversel
is a button that gets the event and calls the activate of the hoversel.

SVN revision: 52889
2010-09-29 12:22:35 +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
Tiago Rezende Campos Falcao fc4a19b171 Listen Space/Return in some widgets
widgets:
* button
* check
* file selector button
* hoversel
* radio
* toggle

Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52600
2010-09-22 17:45:49 +00:00
Tiago Rezende Campos Falcao 2bc6b517c3 Complete some widgets with activate_hook
widgets:
* button
* check
* file selector button
* hoversel
* radio

Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52598
2010-09-22 17:45:43 +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
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
Jonathan Atton 56079f7819 elm_hover/hoversel: set a default parent in the constructor. With the edje external type we can not set a parent currently but with this patch we can use theses widgets in specifics conditions (the parent will be the edje group)
SVN revision: 50303
2010-07-17 08:54:51 +00:00
Boris Faure 97dfb904e9 add doc, thanks to Mike Blumenkrantz (zmike)
SVN revision: 47801
2010-04-07 07:37:49 +00:00
Carsten Haitzler 0e56acdbcb patch from disco-man! :)
SVN revision: 47799
2010-04-07 01:31:36 +00:00
Tiago Rezende Campos Falcao 5dd010bb26 Hoversel External
SVN revision: 47607
2010-03-30 20:41:56 +00:00
Gustavo Sverzut Barbieri 06d14ed245 const and -Wextra, come on guys! :-/
SVN revision: 47409
2010-03-24 03:06:00 +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
Gustavo Sverzut Barbieri e01d72fe26 Use eina_stringshare_replace to avoid crashes.
By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 47187
2010-03-13 21:01:26 +00:00
Carsten Haitzler 310810413c and some more warning--
SVN revision: 47097
2010-03-10 03:47:33 +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 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 568b955c1c move horizontal context menu option to data item - and fix some hoversel
style stuff that has been broken for ages and i just neever noticed!



SVN revision: 45282
2010-01-18 10:28:00 +00:00
Iván Briano 4d2464ccbc Set theme hook for hoversel so style changes are applied.
SVN revision: 45121
2010-01-14 20:06:41 +00:00
Carsten Haitzler 658583e309 patch from <jihoon48.kim@samsung.com> - horizontal context menu option.
SVN revision: 45105
2010-01-14 03:47:28 +00:00
Gustavo Sverzut Barbieri 24d6072ecc fix valgrind reported problems.
GENERAL WARNING:

do NOT delete sub-objects (elm_widget_sub_object_add) or resize object
(elm_widget_resize_object_set) from del_hook()!! These are deleted
automatically before this function is called, thus you might double
free.

Fixed all occurrences I've spotted with valgrind. Please do not add more :-)




SVN revision: 43682
2009-11-13 22:22:05 +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 5dc064a4fd Don't use depreciated function for setting style. Use elm_object_style_set
SVN revision: 43143
2009-10-18 05:52:20 +00:00
Christopher Michael 551018cc0f Don't use depreciated *style_set functions. Use elm_object_style_set
SVN revision: 43142
2009-10-18 05:49:23 +00:00
Jonathan Atton ba714b567c elm notify : some fix. hoversel :add items_get()
SVN revision: 42879
2009-10-04 23:05:50 +00:00
Christopher Michael 15382d4092 Formatting.
SVN revision: 42745
2009-09-27 20:10:03 +00:00
Iván Briano fb7a90d7a4 Get icon info from hoversel item.
Patch by billiob


SVN revision: 42522
2009-09-16 19:13:55 +00:00
Carsten Haitzler 4686255022 1. scroller uses event timestamps for momentum chrecks
2. fixed paged scrollin to work better
3. entry hoveresel is themable separately
4. entry hofersel is extenstible
5. test improvings



SVN revision: 42181
2009-09-02 12:48:00 +00:00
Viktor Kojouharov 91dcee72db add disabled state for the hoversel widget
SVN revision: 42020
2009-08-26 16:43:17 +00:00
Davide Andreoli 87e362f839 * Hoversel: add 2 new API calls:
EAPI void elm_hoversel_clear(Evas_Object *obj)
  To remove all the items from the hoversel.

EAPI void elm_hoversel_item_icon_set(Elm_Hoversel_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type)
 To set the icon of the item, also from an edje file!!


SVN revision: 41757
2009-08-14 11:17:06 +00:00
Davide Andreoli d69a56c1e8 * Add the *_icon_get() API calls for all the widgets that have the *_icon_set() corresponding func.
SVN revision: 41721
2009-08-12 22:37:48 +00:00
Davide Andreoli 1e91fe20be * add another _label_get() function
This also fix ticket #294 on trac :)

SVN revision: 41700
2009-08-12 11:18:08 +00:00
Davide Andreoli bf16de5092 Implement all the *_label_get() functions for widgets that have a *_label_set() function.
SVN revision: 41684
2009-08-11 10:44:49 +00:00
Vincent Torri e2be9d2b24 remove trailing spaces
SVN revision: 41261
2009-07-07 06:46:51 +00:00
Carsten Haitzler d7a3bd786d more... DOCS!
SVN revision: 40868
2009-05-31 21:59:31 +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
Viktor Kojouharov 4e41c03059 From: Viktor Kojouharov <vkojouharov@gmail.com>
This patch tries to fix some warnings I noticed using valgrind.




SVN revision: 40315
2009-04-23 03:51:50 +00:00
Carsten Haitzler 42853697f8 add data get call for convenience.
SVN revision: 39815
2009-03-31 11:58:56 +00:00
Carsten Haitzler 16a328cba1 and make entry work nicely by freezing/holding scrolling (hold == different
scroll mode).



SVN revision: 39601
2009-03-20 15:08:33 +00:00
Carsten Haitzler e5298074e7 work on bettre touchscreen text selection support. not 100% done yet. been
playing with ideas. this one seems best.



SVN revision: 39579
2009-03-19 13:36:46 +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
Carsten Haitzler f382576f6a more list work - also some minimal safety stuff.
SVN revision: 38503
2009-01-08 14:29:13 +00:00