Commit Graph

11 Commits

Author SHA1 Message Date
Gustavo Lima Chaves 3451411326 New elm widget exported to edje: bubble.
SVN revision: 47559
2010-03-29 17:19:35 +00:00
Gustavo Sverzut Barbieri c83883b8ef call elm_init otherwise applications that still did not will fail.
SVN revision: 47499
2010-03-27 01:24:40 +00:00
Iván Briano efccbe07e8 Make someone else assume responsibility when Elementary is not the father.
SVN revision: 47479
2010-03-26 05:44:30 +00:00
Iván Briano 679b233813 _elm_log_dom is not available outside of libelementary.so and EAPIfying it doesn't sound like a good idea. So let's just have another variable named like it in the externals module so we can reuse the log macros defined in elm_priv.h
SVN revision: 47468
2010-03-26 05:20:30 +00:00
Gustavo Sverzut Barbieri 439a3bd492 Proxy Elementary widget signals to Edje.
Add support to automatic proxy events from Elementary to Edje using
callbacks described with Evas_Smart_Cb_Description and set to
Evas_Smart_Class or per-instance with
evas_object_smart_callbacks_descriptions_set().

Right now elm_widget is not subclassable, so there is no way to define
class signals, just instance signals.

Just doing it for button, lots of widgets to do... If you can help,
please follow the process:

  * see example at src/lib/elm_button.c, copy it.

  * read your widget documentation at Elementary.h

  * grep for evas_object_smart_callback_call(), see if they are all
    documented in Elementary.h, or if there are some missing. Fix Elementary.h

  * paste and change based on fixed Elementary.h My recommendation is
    to create "static const char []" variables and replace all
    evas_object_smart_callback_call() with that, to force sync.


With callback descriptions pre-defined and using the same pointer with
a custom variation evas_object_smart_callback_call_ptr() we may later
optimize signal calling heavily, removing the requirement to call
eina_stringshare_add()/eina_stringshare_del() and also not mixing all
the callbacks in teh same list, instead having an array for defined
signals, and a list from there.  These optimizations are not in, but
they are easily added later without breaking the API/ABI.




SVN revision: 47461
2010-03-26 00:58:14 +00:00
Gustavo Sverzut Barbieri d1d996f13d Port to new Edje EXTERNAL API goodies!
Now it is possible to change labels and lots of other parameters
directly through Edje's API.

BIG FAT NOTE: this is a convenience that comes with a reasonable
    price. If you have hot paths, like loops, then avoid calling this
    and use the object directly. This functions add a cost to check
    edje, then find the part, then get the type, then get the
    param_set/param_get methods, then calling it, then finding the
    parameters using strcmp(), then checking the type and just then it
    will call the actual method. So whenever possible, just call the
    method directly.

Due the reasoning of the "big fat note" I'm adding this inside edje
externals only. The code would be almost the same to expose it in
Elementary.h as elm_widget_property_set/get, but then I know people
would misuse it... actually this kind of stuff could be easily ported
to Evas smart object, but then abuse and slowness will hunt us
foreveeeeer...




SVN revision: 47457
2010-03-25 18:10:25 +00:00
Iván Briano 6f6ebbfaa6 Remove unused variable and don't create icons if there's no icon set
SVN revision: 45564
2010-01-25 19:56:45 +00:00
Gustavo Sverzut Barbieri fb539794d1 Icon parser check if it was successfuly set and if not deletes the icon.
that's the end of that ugly space in editje button.



SVN revision: 44589
2009-12-20 00:28:02 +00:00
Iván Briano bf5af093fa style, better parsing, some parameter names changed
SVN revision: 44302
2009-12-09 04:37:48 +00:00
Iván Briano 02cb10c6e5 State is not a common parameter
patch by Fabiano Fidencio


SVN revision: 44273
2009-12-08 04:57:39 +00:00
Tiago Rezende Campos Falcao edf7f2e22e Elementary edje external modules
Widgets: Button, Check, Radio, Slider, Toggle

SVN revision: 44207
2009-12-06 01:22:54 +00:00