Commit Graph

54 Commits

Author SHA1 Message Date
ChunEon Park 0369dbff50 elementary / calendar, button, colorselector, bg, cnp_helper, bubble, check, box, clock - removed white spaces
SVN revision: 58253
2011-04-01 11:35:07 +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
Tom Hacohen 62afe7cc3c Elementary box: fixed on-the-fly UI-mirroring.
By Aharon Hillel.

SVN revision: 56921
2011-02-10 15:13: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
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
Iván Briano 7454518f05 elm_box.c: Fix in elm_box_layout_transition
This function does not receive the Widget object in the parameter
Evas_Object *obj, so it must not check its type with ELM_CHECK_WIDTYPE

See "Box Transition" test in the elementary_test

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



SVN revision: 54461
2010-11-11 16:22:55 +00:00
Tiago Rezende Campos Falcao d938999c78 Add missing object type checkers.
The test test_decl now warn about missing API_ENTRY or
ELM_CHECK_WIDTYPE.

SVN revision: 53956
2010-10-28 13:38:55 +00:00
Tiago Rezende Campos Falcao 116cd3c6dc Setters/Getters fix 1.
Setters can't receive const pointers.
All setter need corresponding getter.

In this patch, i adjust getter in: Bg, Box, Icon, Image, Win and Main.

SVN revision: 53917
2010-10-27 14:38:37 +00:00
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Christopher Michael a1a0cbc9c2 Add UNUSED where needed.
Fix some formatting snafus.



SVN revision: 53284
2010-10-12 03:46:11 +00:00
Tiago Rezende Campos Falcao d959e612eb Adding custom chain to focus.
Added set, get, unset, prepend and append (relative or not).

Set - overwrite the custom chain
Unset - Delete the custom chain
Get- Return the custom chain
Append - append after the relative object or in the end
Prepend - prepend before the relative object or in the start

SVN revision: 53115
2010-10-06 20:24:22 +00:00
Tiago Rezende Campos Falcao ef18ffa4f4 Set const where need in focus_next_get functions set
SVN revision: 53114
2010-10-06 20:24:19 +00:00
Tiago Rezende Campos Falcao 198ca1fd95 Rename focus method from cycle to next_get
SVN revision: 53112
2010-10-06 20:24:13 +00:00
Tiago Rezende Campos Falcao c3e3585e83 Optimized Linear Focus Chain
Before, the focus_cycle try pass the focus to next, and try again if
need loop the objects. Now, the focus cycle return possible next
object and if is necessary loop or not to focus this returned object.

SVN revision: 53111
2010-10-06 20:24:09 +00:00
Christopher Michael 8708cc7049 Fix nasty formatting.
SVN revision: 53009
2010-10-04 06:24:16 +00:00
Christopher Michael 688b6e2fac Fix return null in func returning void...oopsie ;)
SVN revision: 53008
2010-10-04 06:21:38 +00:00
Christopher Michael aef7e3d35a Add some missing box functions (padding & align set).
Use Eina_Bool's for evas_object_box functions.



SVN revision: 53006
2010-10-04 05:50:29 +00:00
Tiago Rezende Campos Falcao a0541d1687 Fix typo from rev52686
SVN revision: 52851
2010-09-28 14:15:23 +00:00
Gustavo Sverzut Barbieri 2a5e3d62c6 const! bad devilhorns...
SVN revision: 52779
2010-09-26 15:28:04 +00:00
Christopher Michael d5cb2b88f8 Add function to return the children of an elm_box.
SVN revision: 52753
2010-09-25 21:39:29 +00:00
Christopher Michael eff81910e4 Fix typo.
SVN revision: 52711
2010-09-25 03:17:19 +00:00
Tiago Rezende Campos Falcao 113ad55d2e Focus Linear Chain for some Widgets
Containers implemented (and with test):
* Win
* Box
* Scroller
* Layout
* Panel

SVN revision: 52686
2010-09-24 14:47:59 +00:00
Otávio Pontes 498de7e94d From: Otávio Pontes <otavio@profusion.mobi>
Subject: Re: [E-devel] Transition Layout for elm_box

There are 2 simple problems with the committed code. First, it would
be better to locate the struct _Elm_Box_Transition in elm_box.c
instead of Elementary.h.in, because users should create it with
elm_box_transition_new and changing its contents can be dangerous. And
second, in struct _Transition_Animation_Data, I declared 4 coordinate
variables as int, instead of using Evas_Coords.
I am sending both patches attached.



SVN revision: 52560
2010-09-22 00:33:17 +00:00
Iván Briano 8b390a9665 Creating a transition layout for elm_box.
This layout is used to perform an animation when changing layouts in box

    by Otavio Pontes <otavio@profusion.mobi>



SVN revision: 52542
2010-09-21 14:06:29 +00:00
Iván Briano 6879d7fdad Begins highlight on focused object.
There's still work to do here, particularly in the theme, but it has
something nice and fun to see the code working.
The idea behind this:
Window tracks focused object and sends the highlight object(s) to it. These
are simple edje objects, one on top, one below the focused widget for nice
effects. Widgets can choose to ignore the highlight and this will be sent to
the parent object, if it doesn't ignore it as well.
About the bottom object, it doesn't work now. For the most part, focused
widget will always be a member of some smart object, so stacking won't work
and the desired effect is nowhere to be seen. This will be worked out later.
To be done now:
 - Let the theme for a widget define its own highlight, disabling if needed
 the standard one for those objects.
 - Needed base in code to allow animations when switching focus. All in theme.
 - Properly test all widgets and fix some things that will most likely work
 in weird ways, given the nature of Evas/Edje and how Elementary makes use
 of them.
 - Forgot the rest, stay tuned, test, report, give ideas, plant a tree.

Work started by glima, continued with some refactors by me when he
decided he needed vacations.


SVN revision: 52524
2010-09-20 22:18:58 +00:00
Otávio Pontes 6a9ba35610 Fix misspelling in elementary documentation
Patch by: "Otávio Pontes" <otavio@profusion.mobi>


SVN revision: 52367
2010-09-17 13:37:36 +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
Carsten Haitzler df611db335 more wanring-- and safety checks.
SVN revision: 47096
2010-03-10 00:31:54 +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
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
Gustavo Sverzut Barbieri 7485ad2742 elm_box: fix move to evas_object_box and avoid double-deletion.
We must clear the box before, otherwise on delete it will
automatically delete all existing children, which would be deleted
right after with sub-objects.



SVN revision: 43675
2009-11-13 18:54:55 +00:00
Christopher Michael f719ff7119 Formatting.
SVN revision: 43599
2009-11-10 04:26:51 +00:00
Jonathan Atton cfed8739bc elm slideshow : add elm_slideshow_items_get() and preload the next and the previous object.
SVN revision: 43339
2009-10-29 17:26:52 +00:00
Jonathan Atton baf4d22681 Elm box/table : Fix callback_del/add and memory leak
SVN revision: 43296
2009-10-26 10:11:14 +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
Iván Briano a95ba2636d Hacky move to evas_box
Evas_Box layouts don't get along with what elm expects,
so for now, it's using the old els_box calculate functions
as a custom layout.


SVN revision: 42863
2009-10-02 19:22:40 +00:00
Daniel Kolesa 6522e43a98 Revert my box unpack function and use ones by Marco Trevisan instead.
SVN revision: 42603
2009-09-21 18:09:51 +00:00
Daniel Kolesa dac506e36f Do not hide when unpacking.
SVN revision: 42586
2009-09-20 13:36:18 +00:00
Daniel Kolesa 03fe4c8f40 Unpack function for Elementary box.
SVN revision: 42585
2009-09-20 13:01:25 +00:00
Carsten Haitzler b08873a42d 1. box has clear.
2. photocam widget++



SVN revision: 42405
2009-09-11 13:43:02 +00:00
Carsten Haitzler 5784c9f47f SNAPSHOT: svn-03
SVN revision: 41532
2009-07-29 08:03:25 +00:00
Vincent Torri e2be9d2b24 remove trailing spaces
SVN revision: 41261
2009-07-07 06:46:51 +00:00
Carsten Haitzler 66a02d654c and add the top docs
SVN revision: 41240
2009-07-03 11:16:16 +00:00
Carsten Haitzler ee958da653 more docs!
SVN revision: 41239
2009-07-03 11:04:25 +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 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 6f493e0ee1 so much more - valgrind complaints fixed in many places, leaks
and anchorblock/view are working...



SVN revision: 37081
2008-10-25 02:11:06 +00:00
Carsten Haitzler eeb785ac88 and enable the 5 swallow regions (possibly limitless) of the hover and test
SVN revision: 36516
2008-10-08 08:14:25 +00:00