Commit Graph

1307 Commits

Author SHA1 Message Date
Carsten Haitzler 3262d51fba fmting
SVN revision: 52872
2010-09-29 01:53:43 +00:00
Carsten Haitzler b1a68bdb5f at least support software-x11-8 engine - in theory.
SVN revision: 52868
2010-09-28 22:43:48 +00:00
Iván Briano 8a20a80417 Scroller is a weird container that can focus
SVN revision: 52862
2010-09-28 19:36:25 +00:00
Iván Briano 8f7c57b6c7 Little debug function. It helped already to track the scrolled_entry focus problems.
SVN revision: 52861
2010-09-28 19:35:12 +00:00
Iván Briano 168f1c521b Create sub objects using ourself as parent. Avoids having them as subobjects of any other widget, which caused problems whens passing focus around
SVN revision: 52860
2010-09-28 19:29:24 +00:00
Gustavo Lima Chaves eb19982d50 Elm notify: better docs and fitting new API.
SVN revision: 52854
2010-09-28 16:56:34 +00:00
Iván Briano 2e92cbfc96 Killed the bottom object. It will come back once the stacking issues are resolved or decided how to handle.
But that's minor and non-important, the real deal here is animating the focus highlight object, entirely in the theme.


SVN revision: 52853
2010-09-28 16:54:11 +00:00
Gustavo Lima Chaves e930af1ad9 New API functions for elm slider.
EAPI void elm_slider_end_set(Evas_Object *obj, Evas_Object *end);

will set a *right* aligned sub-object relative to the slider.

EAPI const Evas_Object *elm_slider_end_get(const Evas_Object *obj);

Getter for that object.

EAPI Evas_Object *elm_slider_end_unset(Evas_Object *obj);

Unparent a previously set end object.

EAPI Evas_Object *elm_slider_icon_unset(Evas_Object *obj);

The same for the icon sub-object.

EAPI void elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show);
EAPI Eina_Bool elm_slider_indicator_show_get(const Evas_Object *obj);

Set/get whether the slider should display the augmented knob (indicator) at
mouse drag at all.



SVN revision: 52852
2010-09-28 15:09:19 +00:00
Tiago Rezende Campos Falcao a0541d1687 Fix typo from rev52686
SVN revision: 52851
2010-09-28 14:15:23 +00:00
Tiago Rezende Campos Falcao bbb96b91d4 Wrong place for elm_widget_highlight_in_theme_set
elm_widget_highlight_in_theme_set only can be called in _theme_hook
after read edje data.

SVN revision: 52850
2010-09-28 14:15:20 +00:00
Tiago Rezende Campos Falcao 5b3c37ac24 Update docs in elm_notify
SVN revision: 52849
2010-09-28 14:15:17 +00:00
Bruno Dilly 0bae5b3b96 Looks for parent cursors when mouse out a subobj
It will set the parent cursor if it should be visible.



SVN revision: 52848
2010-09-28 12:44:08 +00:00
Carsten Haitzler dc9887471c fix limit horizontal mode for genlist
SVN revision: 52844
2010-09-28 08:46:08 +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 c7c28779cd Don't add cursor callback for delete on parents of sub objects
They will only display a warning because they don't have a cursor themselves.
Only adding for the eventareas will free everything created.



SVN revision: 52821
2010-09-27 22:17:40 +00:00
Vincent Torri 481f83d212 fix compilation with MinGW
SVN revision: 52819
2010-09-27 21:49:00 +00:00
Tiago Rezende Campos Falcao d5b17baf0f Elm Notify timeout are double.
And only start timer when visible.
The previous code don't start the timer if timer was changed from
disabled to one valid value.

SVN revision: 52817
2010-09-27 21:13:45 +00:00
Tiago Rezende Campos Falcao 59e7d34f2c slider, slideshow and spinner with keyboard arrows
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

elm_slider now respond to the keyborad arrows depends on its position.
If it is in a horizontal mode, than its value will change by pressing
left and right, other wise it will respond by pressing up and down

elm_slideshow: go to next and previous with keyboard arrows

elm_spinner: respond to left and right keys in an animated way

SVN revision: 52816
2010-09-27 21:13:41 +00:00
Tiago Rezende Campos Falcao 42b6280dc1 Focus Cycle Chain to Table
SVN revision: 52815
2010-09-27 21:13:36 +00:00
Tiago Rezende Campos Falcao 3660486ed2 Panel fixed and is now focusable.
The old theme start show animation on obj show, if you want
disabled by default it doesn't work well. I changed the theme
default to be visible, don't need animation on "show".

And hidden_set was with inverted logic.

The focus highlight is in theme. And the widget react to
Return/Space.

SVN revision: 52814
2010-09-27 21:13:32 +00:00
Tiago Rezende Campos Falcao a276bb071a Refactoring focus_cycle_next_get and copies
SVN revision: 52813
2010-09-27 21:13:25 +00:00
Gustavo Lima Chaves 836b0ea1c0 Elm notify's new signal: "timeout".
Also changing elm_notify_timeout_set()'s behavior: it won't init the
timer itself, unless there was a previous one running.



SVN revision: 52810
2010-09-27 19:52:56 +00:00
Gustavo Lima Chaves 3ee1b96080 Fixes on scrolled entry docs.
SVN revision: 52807
2010-09-27 19:04:31 +00:00
Bruno Dilly 2f8315d7e6 Fixes on cnp_helper for changes on Ecore_X (int -> bool)
It should shut up gcc complains.
I hope I'm not screwing up anything =)



SVN revision: 52806
2010-09-27 18:45:38 +00:00
Bruno Dilly 1014a0c5dc Tooltip / Mouse Cursor support for elm_genlist / elm_gengrid items
This patch add tooltip and mouse cursor support for items of genlist
and gengrid and extends the elementary tests for tooltips and
cursor

By: Thiago Ribeiro Masaki <masaki@profusion.mobi>



SVN revision: 52805
2010-09-27 18:18:37 +00:00
Bruno Dilly d3fcfa2689 Re-check theme when change engine only cursor on elm
Otherwise it won't make difference to set it =P



SVN revision: 52804
2010-09-27 18:16:34 +00:00
Brett Nash d56a2722eb elm: cnp: Send plain text as well plain text.
SVN revision: 52799
2010-09-27 06:19:12 +00:00
Brett Nash 815460c6f8 Handle utf8 encoded html.
SVN revision: 52798
2010-09-27 04:25:26 +00:00
Brett Nash 28e23f47ab Don't request things we can't handle.
SVN revision: 52797
2010-09-27 04:25:17 +00:00
Brett Nash fba4994c3d Shush GCC up.
SVN revision: 52796
2010-09-27 04:25:10 +00:00
Carsten Haitzler 46f5cea911 fix setting stdicon in elm icon.
SVN revision: 52795
2010-09-27 02:51:26 +00:00
Gustavo Sverzut Barbieri 0f90c50f47 allow cursors on edje parts.
yeah, i should do the tooltips one as well, but it's boring so I'll
leave the implementation as the exercise for someone else :-)

and yeah, we should have that inside edje, like a nice description {
cursor: "xterm"; }, but that's not going to happen in Edje 1.0.



SVN revision: 52793
2010-09-27 00:51:16 +00:00
Gustavo Sverzut Barbieri 83586bb0e9 help users by showing some debug messages about themes not being found.
If you have problem seeing stuff due theme misses, then use:

   export EINA_LOG_LEVELS=elementary:4

and you should see some reports of missing groups with files. This
helps a lot for genlist and its complex way of naming items :-)



SVN revision: 52791
2010-09-26 23:27:18 +00:00
Gustavo Sverzut Barbieri ec9741575f less yet faster and less error-prone code by using Widget_Data instead.
instead of refetching and revalidating Widget_Data everytime, just
handle it. Although this will save some instructions, the goal is to
make code shorter and less error prone.



SVN revision: 52790
2010-09-26 23:19:15 +00:00
Gustavo Sverzut Barbieri 2a5e3d62c6 const! bad devilhorns...
SVN revision: 52779
2010-09-26 15:28:04 +00:00
Carsten Haitzler 482d1a4ff8 fmting
SVN revision: 52770
2010-09-26 02:55:51 +00:00
Bruno Dilly 333e06b357 Clean up some dead code on elementary
SVN revision: 52764
2010-09-25 22:08:56 +00:00
Bruno Dilly 89f23acadc Remove some dead assignments from elementary
SVN revision: 52763
2010-09-25 22:07:55 +00:00
Bruno Dilly b7ae7c772a Add cursor engine only usage to elm config
Only use engine cursors by default



SVN revision: 52762
2010-09-25 22:04:51 +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
Christopher Michael e79367d7a8 Fix typo.
SVN revision: 52759
2010-09-25 22:01:18 +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
Carsten Haitzler 0b14b5b021 workaround for now :(
SVN revision: 52735
2010-09-25 14:57:34 +00:00
Carsten Haitzler 24b01d329c fix clip artifact that elm_config shows up with flip.
SVN revision: 52732
2010-09-25 12:41:06 +00:00
Christopher Michael eff81910e4 Fix typo.
SVN revision: 52711
2010-09-25 03:17:19 +00:00
Iván Briano 4b75917e42 Begone! Evil trailing spaces from hell!
SVN revision: 52692
2010-09-24 16:41:25 +00:00
Tiago Rezende Campos Falcao 9d310ab6d2 Removing warnings in elm_tests.
Most of the errors referred to the cast from int to void* in x86_64.
This need conversion to long, as intermediate.

Some calls to elm_widget not exposed API were changed to their similar
at elm_object API.

Elm_Photo never call "drop" smart callback, but i leave the callback
in tests.

And others API methods are included in Elementary.h

Now elementary build with -Wall -Werror in x86_64.

SVN revision: 52691
2010-09-24 14:48:15 +00:00
Tiago Rezende Campos Falcao 1efda55a6c Removing warnings in els_icon.c
Enum value will be treated in next switch.

SVN revision: 52689
2010-09-24 14:48:09 +00:00
Tiago Rezende Campos Falcao 0d7a14174f Removing warnings in scrolled_entry and scroller
Adding NULL as return value.

SVN revision: 52688
2010-09-24 14:48:06 +00:00
Tiago Rezende Campos Falcao d147b3213e Remove warning from elm_index.c
Can't access directly Elm_Widget_Item struct.

SVN revision: 52687
2010-09-24 14:48:03 +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
Tiago Rezende Campos Falcao 4743f7f5b5 Modify elm_win to receive events
When no objects have focus, elm_win need get it.

SVN revision: 52685
2010-09-24 14:47:55 +00:00
Tiago Rezende Campos Falcao 66d585a905 Elm_widget_can_focus only return if can have focus.
If want the old comportament, use elm_widget_can_focus_receive_get()

SVN revision: 52684
2010-09-24 14:47:52 +00:00
Vincent Torri 9076f964c9 spelling
SVN revision: 52668
2010-09-24 05:29:42 +00:00
Carsten Haitzler d81485068a make theme browser in elm config util actually work. add api's needed.
it's simple. only allows 1 level of theme. would need an advanced
dialog to allow:

theme1:theme2:theme3:theme4... etc.

also no browsing for themes - just whats instaleld n system and user
dirs atm.



SVN revision: 52667
2010-09-24 05:11:33 +00:00
Leandro Pereira 8c4df25efe [Elementary] For icon/end elements, use swallow parts in the scroller theme instead of an Elm_Box.
This defines a new theme group for elm_scrolled_entry:
"elm/scroller/entry/$THEME".  Themes that wants to support the icon/end
feature in scrolled entry should implement parts "elm.swallow.icon" and
"elm.swallow.end".  Black&White theme has been changed, Effeniht changes
to come on a later commit.



SVN revision: 52657
2010-09-23 22:30:47 +00:00
Iván Briano c9a4a09aaa Scroller now checks if its theme has a highlight for focus, and if so, sets the necessary flags for it to work.
Also, a not really nice highlight for the scroller theme, but I am no artists and it shows the feature working.


SVN revision: 52650
2010-09-23 19:43:50 +00:00
Nicolas Aguirre ae44befb75 Implement elm_gengrid_item_show and elm_gengrid_item_bring.
These two functions mimic what is already done in gengrid object.
* elm_gengrid_item_show : scroll immediatly to the item
* elm_gengrid_item_bring : scroll with an animation to the item



SVN revision: 52620
2010-09-23 06:33:50 +00:00
Carsten Haitzler e80c09063a aaargh! fix config init. broke scaling!
SVN revision: 52619
2010-09-23 02:55:51 +00:00
Iván Briano 7255d69dc1 Highlight in theme wins over generic object
Still needs stuff done in themes and widgets code to make it functional.
It will start coming tomorrow morning. (My morning)



SVN revision: 52608
2010-09-22 22:33:57 +00:00
Leandro Pereira 51f9a38521 [Elementary] Implement get/unset for icon/end properties of scrolled_entry.
(Suggestion by glima)


SVN revision: 52603
2010-09-22 19:15:38 +00:00
Leandro Pereira 8c7e3016e1 [Elementary] Add icon/end objects to the scrolled entry.
SVN revision: 52602
2010-09-22 18:25:35 +00:00
Tiago Rezende Campos Falcao 2aa5e5313f Button animate when click with keyboard
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52601
2010-09-22 17:45:53 +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 68c1638c16 Focus suport for some widgets
Widgets:
* check
* radio
* slider
* toggle
* spinner
* slideshow

Author:    Thiago Ribeiro Masaki <masaki@profusion.mobi>

SVN revision: 52599
2010-09-22 17:45:46 +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
Brett Nash 12324ed54e Better temporary handling for CNP.
SVN revision: 52563
2010-09-22 04:42:41 +00:00
Brett Nash 6dcb79a037 Vcard send.
SVN revision: 52562
2010-09-22 04:42:36 +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
Christopher Michael 31a6482f50 Minor formatting fix.
SVN revision: 52556
2010-09-21 20:09:29 +00:00
Gustavo Lima Chaves 79de9a1792 Fix reverting focus to the previous widget.
There's currently in Elementary a way for widgets that die to revert
    focus to whoever had it first, but it was broken in some cases.




SVN revision: 52550
2010-09-21 18:55:32 +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
Tiago Rezende Campos Falcao ba4e1c944e Elementary event propagation to widget parents
The Elm Widgets aren't disposed exactly as trees of Evas Objects, so
need store widget parents separated from Evas Smart Object parents.

The Evas propagation events don't satisfy all use cases. Like managing
events in elm_win or try if one parent manage the event before manage
it.

In this, I add hook to each widget manage their interested events or
from their child.

SVN revision: 52527
2010-09-21 02:02:24 +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
Iván Briano 66707ffab4 Fix typo, we want the parent, not some random data
SVN revision: 52506
2010-09-20 19:54:48 +00:00
Lucas De Marchi 6e219c81bf Fix typos
"he->the" where appropriate



SVN revision: 52493
2010-09-20 17:09:13 +00:00
Chidambar Zinnoury 15869dae53 elementary: image orientation seems to work quite nicely, so let's enable it.
SVN revision: 52466
2010-09-19 17:36:26 +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 99a4bcfef4 elm_entry has ELM_CURSOR_XTERM by default.
SVN revision: 52388
2010-09-17 22:28:29 +00:00
Iván Briano 4b90f34b10 Avoid losing the reference to the parent object
Calling resize_object_del() when a resize_object died calls
elm_widget_sub_object_del(), which sets the parent of the (now dead)
widget to NULL. The problem is that this breaks some of the
stuff done in the smart_del() method in the smart class for widgets,
like reverting focus to whoever held it previously.



SVN revision: 52387
2010-09-17 22:10:04 +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 53cbc881c8 Missing "const void *data" -> "void *data" in the API
SVN revision: 52373
2010-09-17 16:34:11 +00:00
Gustavo Sverzut Barbieri c4d40c7183 Constant void data is pretty useless in item callback contexts.
the callbacks are supposed to freely modify their data, as it is their
context (ie: python/js object, row from database, etc.



SVN revision: 52372
2010-09-17 16:21:34 +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
Brett Nash 9b8e54d3b1 Move cnp/dnd -> elm_widget. Officially Experimental for apps.
Expect to see changes in the very short term future for the CNP/DND code.
It will break etc etc etc.

SVN revision: 52359
2010-09-17 05:39:04 +00:00
Brett Nash c382b4339a Vcard support for dnd.
SVN revision: 52358
2010-09-17 05:39:00 +00:00
Gustavo Sverzut Barbieri 5662d99b44 fix warnings with elm_object_tooltip_unset().
don't connect twice to the same object (happened whenever not using
sub-items), then the callback was being called twice.

also set the dead object pointer to NULL, so we avoid operating on it
any further.




SVN revision: 52354
2010-09-16 23:44:02 +00:00
Gustavo Sverzut Barbieri 0a034e8fe5 elm_smart_scroller now propagates the events, fixes tooltips in scrolled stuff.
The els_scroller.c:_smart_add() as disabling event propagation on
itself, that way an owner object (ie: elm_scroller,
elm_scrolled_entry, elm_list, ...) was not getting the mouse events it
gets, thus any evas_object_event_callback_add(..., EVAS_CALLBACK_MOUSE_*...)
were not working (effectively breaking tooltips).

Seems that the reason to do so was double-event reporting. It could
happen as the elm_smart_scroller has an event_obj that repeats event,
thus the object behind it, the edje_object, could get and possibly
repeat them as well.

As we are sure event_obj always get the events, but not sure of the
edje, as it depend on user contents, the logic is now changed to stop
propagation of the edje instead (it still processes the events! just
not propagates to elm_smart_scroller).

I hope this patch does not break anything, but please check your software!



SVN revision: 52350
2010-09-16 21:33:10 +00:00
Carsten Haitzler bb4e5a8f8a just a sec. back that out.. someone has broken icons.. and now i dont
want to hunt thru recent commits to find it.



SVN revision: 52335
2010-09-16 05:33:19 +00:00
이명재 6b36a90eae From: 이명재 <mjae.lee@samsung.com>
Subject: patch for elm_widget_show_region_set function



SVN revision: 52334
2010-09-16 05:23:34 +00:00
Brett Nash 1f3ecb91a6 elm cnp: Minor fixme cleanup.
SVN revision: 52290
2010-09-15 08:23:06 +00:00
Brett Nash c6684b49ec Elm DND/Sel: Update typenames to be more consistent.
SVN revision: 52286
2010-09-15 06:29:49 +00:00
Brett Nash e8346ef866 elm_thumb: Can now be dragged too.
SVN revision: 52285
2010-09-15 05:42:19 +00:00
Carsten Haitzler bce9e5560a slider -> handle theme change.
SVN revision: 52284
2010-09-15 05:07:12 +00:00
Carsten Haitzler 8292b172f4 move check up.
SVN revision: 52281
2010-09-15 03:11:30 +00:00
Carsten Haitzler 480ce38b8e progressbar handles theme change right
SVN revision: 52280
2010-09-15 00:09:03 +00:00
Carsten Haitzler 3577e9b78f handle theme change - bubble.
SVN revision: 52278
2010-09-14 23:46:01 +00:00
Carsten Haitzler 23d81913d8 ok strange bg bug when theme changing on the fly. why?
SVN revision: 52277
2010-09-14 23:42:50 +00:00
Carsten Haitzler 05b5413183 spot check of theme change... panes not working right. generally code
was poor. fixed.



SVN revision: 52276
2010-09-14 23:42:31 +00:00
Carsten Haitzler f97edfdd90 move some of quicklaunch into the sub init to reduce fd inheriting
chances. still ecore is an issue.



SVN revision: 52271
2010-09-14 21:58:48 +00:00
Bruno Dilly cbe63dec5a Improve elm clock to display time not equal to system time
Now the ticker uses a timediff that can be set by elm_clock_time_set
or after using clock edit mode.



SVN revision: 52268
2010-09-14 21:39:14 +00:00
Vincent Torri b452dab774 include Evil.h for localtime_r()
SVN revision: 52265
2010-09-14 21:26:43 +00:00
Carsten Haitzler baa8b34b6e comments match correct code.
SVN revision: 52241
2010-09-14 11:56:48 +00:00
Brett Nash 9419e382f8 Fix elm_thumb_ethumb_client_get so the application doesn't need a define.
SVN revision: 52237
2010-09-14 07:03:31 +00:00
Brett Nash ecddd92903 Allow multiple calls to need_ethumb, efree and edbus without messing
everything up.

SVN revision: 52235
2010-09-14 07:01:57 +00:00
Brett Nash a14718d586 Partially fix sizing for the DND window.
SVN revision: 52186
2010-09-13 09:16:09 +00:00
Brett Nash 135bfe5c2e Position subwindow correctly.
SVN revision: 52185
2010-09-13 09:16:05 +00:00
Brett Nash cadc509be5 Add a semicolon. GCC: This ones for you.
SVN revision: 52184
2010-09-13 09:16:01 +00:00
Carsten Haitzler 68f5b4119b oooh big cleanup. internal elm widget api cleaned up a bit.
SVN revision: 52178
2010-09-13 07:56:23 +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 448f5eee60 Fix tooltip visibility lock.
Whenever object starts hiding Elementary sends "elm,action,hide", so
when it aborts such action it must always emit "elm,action,show" and
the best place to do this is at _elm_tooltip_hide_anim_stop().

Note: _elm_tooltip_hide() calls _elm_tooltip_hide_anim_stop() and thus
would show the object, but this is void as right after that the
tooltip object is deleted and thus the signal is never processed and
as we don't go back to main loop, nothing changes on screen.



SVN revision: 52167
2010-09-12 17:46:44 +00:00
Gustavo Sverzut Barbieri 191ccae951 Tooltips are now uber cool!
I always wished tooltips would be less boring, and so we have them all
fancy and nice :-)

 * tooltip theme can request a timeout before hiding. This means we
   can fade out the tooltips nicely.

 * tooltip theme get enough information to track its origin. The
   current theme will show a small tip where it was created, and
   dynamically follows it. The graphics kinda suck, but I tried to
   achieve a cartoon-like buble using Inkscape.

 * label style is set to "tooltip". I'm providing a default with
   dark-gray text and 8 as size.



SVN revision: 52166
2010-09-12 17:24:45 +00:00
Gustavo Sverzut Barbieri a60be2543b Provide some known Evas_Object layers and set tooltip's to its designed value.
The Elm_Object_Layer is a convenience enumeration to help standardize
values so we don't ride into problems in future.

Tooltip has now its own layer, so set it there and avoid newly created
objects being created on top of them (usually they show on top of
everything as they are the last created, thus the topmost on the
default layer)



SVN revision: 52158
2010-09-11 17:01:40 +00:00
Gustavo Sverzut Barbieri 5c61931bd1 Welcome Tooltips.
Tooltips are set using elm_object_tooltip_content_cb_set(), that
returns the desired Evas_Object to use as contents, or using the
helper function elm_object_tooltip_text_set() that uses that
underneath.

The behavior is controlled part on elm_config, theme and user
application. In elm_config one defines the tooltip timeout. The theme
defines the padding around cursor x/y and window border x/y, as well
as the look and feel. Last but not least, the user application may
want to change the tooltip style with elm_object_tooltip_style_set().

Have fun!

This code was initially written by Tiago Falcao and Fabiano Fidencio,
I did some API review and changed some bits.

TODO: elm widget item support, like with toolbar items.




SVN revision: 52150
2010-09-11 00:52:33 +00:00
Brett Nash a20d659fa5 Remove spurious underscores.
SVN revision: 52130
2010-09-10 09:03:05 +00:00
Brett Nash af8097a963 Elm photo stops scrolling events when dragging now.
SVN revision: 52129
2010-09-10 08:24:29 +00:00
Brett Nash 506e380a6e Use hold flag for detecting drags.
SVN revision: 52128
2010-09-10 08:24:25 +00:00
Brett Nash 8a74d9c272 Elm; drag_start now has a donecb.
SVN revision: 52127
2010-09-10 08:24:21 +00:00
Brett Nash 3e02b10c35 Elm: cnp: Handle non-uri uris when searching
SVN revision: 52126
2010-09-10 07:24:10 +00:00
Brett Nash 26efdd12c2 elm photo: Long press now tracks mouse movements.
SVN revision: 52125
2010-09-10 07:24:07 +00:00
Brett Nash afa4f05976 Use file urls for files (hack hack hack).
SVN revision: 52124
2010-09-10 07:24:03 +00:00
Brett Nash da04e33112 Bit of dnd work.
SVN revision: 52123
2010-09-10 07:23:56 +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
Gustavo Sverzut Barbieri b5aeff5519 Disconnect from signals if the pan_obj goes away.
IF we're replacing the pan_obj, then we should disconnect from the old
in order to avoid receive useless callbacks... actually if it is an
external pan object and we die and it does not, we may end crashing
due it calling function callbacks with garbage data.



SVN revision: 52117
2010-09-10 02:01:32 +00:00
Gustavo Sverzut Barbieri 5e7dfe1c8c Introducing Elm_Widget_Item: common ground for widget sub items.
Lots of widgets have items that are not Evas_Object of type elm_widget
per se, like Elm_List_Item or Elm_Toolbar_Item. They all have, or
should have, some common attributes and functions such as data,
del_cb, a view object and a parent/owner widget. Thus this is being
provided and will be later used in future patches.

Right now I opted to hide elm_widget_item_del_cb_set(),
elm_widget_item_data_get(), elm_widget_item_data_set() inside
elm_priv.h and keep the old functions as wrappers to the new. But
maybe in future we can remove them and have the user to call the
common function.

Future extensions will use this base, such as tooltip support.




SVN revision: 52116
2010-09-10 01:54:05 +00:00
Gustavo Sverzut Barbieri eb0c580753 Just delete children and related from del_pre_hook, not del_hook!
At del_hook() stuff are already gone and invalid access may
happen. Doing it from del_pre_hook you still have things working nice.



SVN revision: 52115
2010-09-10 01:40:50 +00:00
Gustavo Sverzut Barbieri c559b06577 Just delete children and related from del_pre_hook, not del_hook!
At del_hook() stuff are already gone and invalid access may
happen. Doing it from del_pre_hook you still have things working nice.

Also refactor the destructor to do recursion and stop allocate list
nodes to avoid it... simpler.



SVN revision: 52114
2010-09-10 01:35:46 +00:00
Gustavo Sverzut Barbieri 17ac79248f Just delete children and related from del_pre_hook, not del_hook!
At del_hook() stuff are already gone and invalid access may
happen. Doing it from del_pre_hook you still have things working nice.



SVN revision: 52113
2010-09-10 01:29:06 +00:00
Gustavo Sverzut Barbieri fa16ad1c31 Don't cast Eina_Inlist directly to Elm_Genlist_Item.
The correct way is to use EINA_INLIST_CONTAINER_GET() that allows the
Eina_Inlist structure to be moved around in the structure. Right now
it did work fine, but I want to change the Elm_Genlist_Item later and
this change will be required and it is better to come in a separate
patch.



SVN revision: 52112
2010-09-10 01:04:19 +00:00
Gustavo Sverzut Barbieri 9a2d660eb1 don't report callbacks on NULL object.
From _del_pre_hook() we first delete pan_smart and then call
elm_genlist_clear() to rip off children, however genlist_clear was
always doing evas_object_smart_callback_call() on it.



SVN revision: 52111
2010-09-10 00:28:47 +00:00
Rafael Fonseca 9c4eb78705 Add signal emit hook to gengrid.
Like was already done to other widgets by bdilly, this patch adds the
possibility to send signals to elm_gengrid's theme.

P.S: lfelipe, ahi esta mi primer commit :P



SVN revision: 52109
2010-09-09 22:01:30 +00:00
Gustavo Sverzut Barbieri 833ba3362e some -Wall -Wextra warning cleanups.
elm_cnp_helper.c warnings were not fixed as they look like
implementation nash will do soon.



SVN revision: 52102
2010-09-09 19:39:30 +00:00
Gustavo Sverzut Barbieri 3c71cada93 Add Elm prefix to struct _Menu_Item.
I've noticed this while grepping the code.



SVN revision: 52098
2010-09-09 19:34:56 +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
Brett Nash c1a9458c66 More compilation fixes. FIxing for windows broke linux...
SVN revision: 52038
2010-09-09 09:37:19 +00:00
Brett Nash d2c67592bc Fix typo from cut & paste
SVN revision: 52037
2010-09-09 09:12:08 +00:00
Brett Nash 67c9425063 Hooks for dragging: not working, just so I can push.
SVN revision: 52036
2010-09-09 08:59:42 +00:00
Brett Nash 458ab084ea Stubs + hide stuff for crazy fr^H^Hwindows users.
SVN revision: 52035
2010-09-09 08:59:38 +00:00
Brett Nash fc21092529 Fix some uncommon typos. A full list is included in the patch.
SVN revision: 52034
2010-09-09 08:59:34 +00:00
Brett Nash 784f509910 elm: debug --;
SVN revision: 52026
2010-09-09 06:05:28 +00:00
Brett Nash 1b2ba6b9ed elm: dnd: Leak less.
SVN revision: 52025
2010-09-09 05:37:02 +00:00
Brett Nash f7d02aee00 Handle jpegs like we do pngs ;-)
SVN revision: 52021
2010-09-09 03:09:46 +00:00
Brett Nash 9d23590313 indentationally inspired patch.
SVN revision: 52020
2010-09-09 03:09:42 +00:00
Brett Nash b5c9e13007 Remove some debug, add some FIXMEs
SVN revision: 52019
2010-09-09 03:09:28 +00:00
Davide Andreoli 67785c352c Scrolled Entry: forward the event_info from the entry to the
scrolled_entry callbacks. Without this any scrolled entry was
  not able to use the event_info struct.


SVN revision: 52015
2010-09-09 01:07:50 +00:00
Lucas De Marchi 3e8419285d Fix common misspellings
Following misspellings were fixed:

accomodate->accommodate
alwyas->always
backgorund->background
beween->between
dependant->dependent
desireable->desirable
doesnt->doesn't
emmitted->emitted
imediately->immediately
ocurred->occurred
sucess->success
ther->the
tranformed->transformed
usefull->useful



SVN revision: 52009
2010-09-09 00:35:43 +00:00
Iván Briano 46becb9f19 Skip pages on the smart functions that act on members. It was making some appear when they weren't supposed to.
SVN revision: 51994
2010-09-08 19:26:58 +00:00
Brett Nash e2f4dec966 elm: dnd cleanup a little better when objects are deleted.
SVN revision: 51982
2010-09-08 08:00:45 +00:00
Brett Nash ee6baa99de Shutdown DND correctly.
SVN revision: 51978
2010-09-08 06:20:09 +00:00
Brett Nash 9640443824 Add 'drop' callback when objects are dropped.
SVN revision: 51977
2010-09-08 06:20:05 +00:00
Brett Nash d342ca5976 Elm: photo doco ++
SVN revision: 51976
2010-09-08 06:20:01 +00:00
Brett Nash bf912e24c0 Elm: doco++ (image editable set)
SVN revision: 51975
2010-09-08 06:19:57 +00:00
Brett Nash 5e612428fb Elm: els_icon: Actually work if the image is already loaded.
SVN revision: 51974
2010-09-08 04:55:24 +00:00
Brett Nash 308e09effd editiable flags to allow drag dests for photso and images.
SVN revision: 51973
2010-09-08 04:55:20 +00:00
Brett Nash b2c68b6c74 Fix image support, support jpgs
SVN revision: 51972
2010-09-08 04:55:16 +00:00
Brett Nash d59987946d Elm: CNP: Handle non-entries and non-elm widgets on drag/drop
SVN revision: 51971
2010-09-08 04:55:12 +00:00
Brett Nash b5428543c0 Update types for new selections.
SVN revision: 51970
2010-09-08 04:55:09 +00:00
Brett Nash 952b0925dc Start cleaning cnp/dnd code for elm.
SVN revision: 51969
2010-09-08 04:55:05 +00:00
Brett Nash 6e3764585e Docimet elm_image_object_size_get
SVN revision: 51968
2010-09-08 04:55:01 +00:00
Brett Nash 0713be0e14 Elm: Simplify elm photo size handling.
Also don't carry around a negative size when it's not used.

SVN revision: 51967
2010-09-08 04:54:46 +00:00
Davide Andreoli 4ab457bce6 whitespaces--
Im going to clear the fileselector widget, I will make the theme use
a layout instead of a fixed box and also I will clear the api that have
silly names atm

If you have suggestions please speak now

DaveMDS


SVN revision: 51966
2010-09-08 03:54:42 +00:00
Brett Nash 687cc32cd0 Handle providers a little better.
SVN revision: 51938
2010-09-07 09:36:51 +00:00
Brett Nash 0d492dcdaf Merge branch 'elmdnd'
Conflicts:
	trunk/TMP/st/elementary/.gitignore

SVN revision: 51935
2010-09-07 06:56:16 +00:00
Christopher Michael c9f2ef3ef0 Fix ticket #569: Setting the same icon file twice for elm_icon would
make the object disappear.



SVN revision: 51865
2010-09-03 17:15:38 +00:00
Carsten Haitzler 7de3bcd295 aaargh. hack hack.
SVN revision: 51856
2010-09-03 08:27:05 +00:00
Carsten Haitzler 9edf419558 and umm... work... and .. struff.. ugh. don't ask.
SVN revision: 51851
2010-09-03 00:08:11 +00:00
Iván Briano f2c8ba0fe6 Versioned config for Elementary.
This is not doing much now, just the version field in the struct,
some stuff stolen from E and a base to use when new things are added.
There are some comments in the code about what to do in certain cases
that E does not have, like a system update, new config and apps linked
to the old version still running when the config Atoms are updated. These
things we'll probably be addressed as they are needed, as well as come
clean up in quick code I ditched in there, but it would be good to do so
with more feedback from the good guys around that like to break SVN
every now and then.

Since the commit message is already long enough, I'm adding some more crap
just for the sake of doing so. I could go with some tl;dr thing as well,
but I don't feel like resuming what's up there.

Have a nice day.


SVN revision: 51843
2010-09-02 14:33:04 +00:00
Carsten Haitzler 27298797f0 finally! flip works! happy!
SVN revision: 51833
2010-09-02 10:25:05 +00:00
Carsten Haitzler cda4f422b1 ooof flippidy-do-da... working much better.
SVN revision: 51831
2010-09-02 09:58:52 +00:00
Tom Hacohen 5f220d5f76 Elementary: Fixed utf8->markup. Should probably just put it all in one place or at least depend on the textblock working on.
SVN revision: 51810
2010-09-01 14:30:31 +00:00
Carsten Haitzler 42ec2033bb fix some most unfortunate lack of clip honorning :)
SVN revision: 51773
2010-08-31 06:20:33 +00:00
Bruno Dilly e2df452945 Oops, fix leap years detection algorithm on elm_calendar
SVN revision: 51586
2010-08-23 18:50:51 +00:00
Bruno Dilly cf8280b413 Add Elementary Calendar Widget
A calendar is a widget that allows the user to select a date. It has
support to adding marks (holidays and checks by default). The calendar
is displayed month at a time.

Weekdays names and the function used to format month and year to
be displayed can be set, giving more flexibility to this widget.



SVN revision: 51584
2010-08-23 18:45: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
Christopher Michael c391c9c86a Spelling.
SVN revision: 51469
2010-08-20 17:10:35 +00:00
titan 5abc08fa87 Make sure after moving the cursor on cursor end in a scrolled entry, the scroller stays where it was.
Should this be done for all cursor moves? Currently a cursor move always takes the scroller to the top.


SVN revision: 51450
2010-08-19 20:57:51 +00:00
Christopher Michael bc583d718c Lots of fixes:
Add UNUSED where needed.
  Remove unused variables.
  Fix lots of compiler warnings.
  Formatting.



SVN revision: 51320
2010-08-18 19:18:42 +00:00
Tom Hacohen e1491acc3f Elementary: Fixed selection and a possible segfault.
1. Selection now works with the buttons in elementary_test.
2. Selection with ctrl+v does not print ERR:elementary elm_widget.c:1373 _elm_widget_type_check() Passing Object: (nil), of type: '(unknown)' when expecting type: 'entry' anymore.

SVN revision: 51216
2010-08-16 14:52:36 +00:00
Tom Hacohen 444745cf52 Elementary: Translate <ps> back to paragraph separator.
SVN revision: 51175
2010-08-16 09:06:19 +00:00
Daniel Juyung Seo e42ab9f072 elm_theme doxygen fix
elm_theme_extension_add() uses eina_list_append() not eina_list_prepend().

Patch by: Daniel Juyung Seo <seojuyung2@gmail.com>



SVN revision: 51116
2010-08-14 15:30:35 +00:00
Carsten Haitzler 67b635e782 wonguk -> happy?
SVN revision: 50980
2010-08-10 23:58:57 +00:00
Christopher Michael 1900ad84b5 Fix up formatting while I am reading this.
SVN revision: 50914
2010-08-08 23:00:09 +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
Christopher Michael 03ddd89f5a Set boolean to 1.
SVN revision: 50824
2010-08-04 19:20:52 +00:00
Christopher Michael cd55226643 Rename variable to 'autosave'.
When deleting the notepad, check if autosave is set before writting.



SVN revision: 50823
2010-08-04 19:20:02 +00:00
Lucas De Marchi 3fd31b24a0 Finish unscrewing patch-fu
SVN revision: 50820
2010-08-04 19:00:15 +00:00
Lucas De Marchi 54531a69ed FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Brett Nash f9a721d4d0 More error returns.
Please people, when you add a function look at what it compiles too.

SVN revision: 50801
2010-08-04 02:03:57 +00:00
Brett Nash 4194c83fc0 elm_notify: Return an invalid enumeration on error.
SVN revision: 50800
2010-08-04 02:03:53 +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
Brett Nash 960624f80d Doesn't anyone check their compiler output?
Don't return random stack cruft on NULL pointer.

SVN revision: 50796
2010-08-04 01:46:41 +00:00
Christopher Michael c4ee716181 Add function to turn off autosave.
Add function to call for 'explicit save'
Use PATH_MAX.
Remove some duplicated code in 'load' function.
Update some doxy.



SVN revision: 50794
2010-08-04 01:09:08 +00:00
Iván Briano c48e0e98fa Invalid write, go away, that 'si' thing is freed already.
SVN revision: 50770
2010-08-03 16:46:59 +00:00
Jonathan Atton 76a2b5f2cb Elementary:
- we can get the content of a external object
- a signal can be send to the content of a external object

SVN revision: 50731
2010-08-01 17:29:20 +00:00
Carsten Haitzler 20490e70d8 handle clear being called from genlist item callback (eg selected)
SVN revision: 50590
2010-07-28 08:35:34 +00:00
Mike Blumenkrantz 7a15d7458e no return value
SVN revision: 50579
2010-07-28 03:29:48 +00:00
Davide Andreoli c815aff152 From: Dave Andreoli <dave@gurumeditation.it>
Subject: [E-devel] New elm pager "slide" and "slide_invisible" styles

Hi everyone,
I have done 2 new style for the pager widget:

"slide" and "slide_invisible"

They work different from the other styles: new (pushed) pages
comes from right and the old go out left, while popped pages
goes out from right. It works like the enna browser, or like all the
"browser lists" on iphone.

The patch include the 2 new styles, a new elementary_test
page called "Pager Slide", a little code for elm_pager.c  that was
needed
for the new style to work and simple update for the other existing
styles.

The patch is located at:
http://pastebin.com/jSbg0wb9

I can commit this myself, just give me the go ;)



SVN revision: 50559
2010-07-27 23:43:12 +00:00
Daniele Ricci d6e7a21e30 From: Daniele Ricci <daniele.athome@gmail.com>
Subject: [E-devel] [PATCH] Genlist longpress timeout

Hello,
I've made a patch that makes the genlist capable of configuring the
timeout for the longpress event.

The patch compiles but I haven't tested it yet. However it's very
simple, it should work out of the box.
Patch is the output of "svn diff" from revision 49809.



SVN revision: 50558
2010-07-27 23:36:27 +00:00
Jonathan Atton 8050ddfe99 elementary: add elm_panes in edje external
SVN revision: 50520
2010-07-26 20:33:33 +00:00
Nicolas Aguirre 16dd75499b Enable transition between previous item and the current when elm_slideshow_show is called.
SVN revision: 50431
2010-07-22 16:13:40 +00:00
Carsten Haitzler 35be1859a0 fix possible null ptr deref
SVN revision: 50422
2010-07-21 23:33:35 +00:00
Bruno Dilly 7808d77502 Add setters and getters to interval for elm spinner and clock
SVN revision: 50392
2010-07-20 21:38:17 +00:00
Jonathan Atton d3ca0b2466 els_icon : hide the object while the image is preloading
SVN revision: 50390
2010-07-20 19:33:40 +00:00
Luis Felipe Strano Moraes ffe42daedb Better variable naming for elm_thumb.
By: Rafael "15 years experience" Fonseca <rfonseca@profusion.mobi>



SVN revision: 50389
2010-07-20 18:42:59 +00:00
Luis Felipe Strano Moraes eb03502762 After Sachiel's changes about making the edje_object a sub_object of
elm_thumb widget, all the stuff about alignement and crop are not
used anymore.

By: Rafael "15 years experience" Fonseca <rfonseca@profusion.mobi>



SVN revision: 50388
2010-07-20 18:42:21 +00:00
Luis Felipe Strano Moraes f0e322d506 Set size min hint to elm_thumb.
By: Rafael "15 years" Fonseca <rfonseca@profusion.mobi>



SVN revision: 50387
2010-07-20 18:41:04 +00:00
Jonathan Atton 17288ba690 elm_slideshow:
* remove printf
* no more realize the current item in item_add(). The last item is always and it is the previous item of the first item, consequently a new item was built each time a item vas added :/

SVN revision: 50386
2010-07-20 18:30:22 +00:00
Jonathan Atton c2ad5fd00c elm_slideshow: pre-calcul the next and the previous items, very usefull if the object is big (like a photo)
SVN revision: 50385
2010-07-20 18:26:22 +00:00
Jonathan Atton cefe73d5dc els_icon: preload the image
SVN revision: 50384
2010-07-20 18:04:37 +00:00
Jonathan Atton a9538e68d0 elm_slideshow: use itc-del to delete the data and not the object.
SVN revision: 50383
2010-07-20 16:36:31 +00:00
Davide Andreoli 935260049c small fix in doc
SVN revision: 50322
2010-07-18 11:56:56 +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
Davide Andreoli 9dc25a32d2 whops, commit also Elementary.h.in I always forbot about it :(
and add the cube also to test2

SVN revision: 50289
2010-07-16 20:47:21 +00:00
Mike Blumenkrantz 3b66bd0ff9 things that are important: not trying to pass off a format string as a buffer size in snprintf :)
SVN revision: 50288
2010-07-16 20:39:17 +00:00
Davide Andreoli 5005200d84 Flip widget: add 2 new flip style:
ELM_FLIP_CUBE_RIGHT, ELM_FLIP_CUBE_LEFT

As you can imagine the new animations make the flip as a rotating cube,
the 2 contents are on 2 different faces.


SVN revision: 50287
2010-07-16 20:30:11 +00:00
Carsten Haitzler 64b374c77f finger waggles! this is to make sure developers actually read docs!
SVN revision: 50277
2010-07-16 06:38:59 +00:00
Carsten Haitzler 99f9670d3f fix formatting, docs and warnings. and bug.
SVN revision: 50276
2010-07-16 06:21:25 +00:00
장효영 b32cbb2a3a From: 장효영 <hyoyoung.chang@samsung.com>
I've added elm_label features. That are fontsize, color, background color and
ellipsis (cutting text to fit widget size) features. Most of the property
setting API is wrapping to label tag set.

The rllipsis feature checks part size and cuts character to fit its size.



SVN revision: 50275
2010-07-16 05:50:45 +00:00
Gustavo Sverzut Barbieri c9e3c7dfbc allow group's min to limit the calculated size.
PS: probably other widgets that use swallow should have this, so
objects that have minimum size of 0x0 (like list/genlist) can be
forced to some size using group.min.



SVN revision: 50274
2010-07-15 23:14:55 +00:00
Christopher Michael d3656fc2b3 Clear gengrid Before deleting the pan object. (also, clear function
already deletes the calc job).



SVN revision: 50273
2010-07-15 22:34:55 +00:00
Jonathan Atton 9793de8b33 Elm_Slideshow: Fix the edje, I hope this time it is correct
Elm_Notify: set orient = -1, else the default orientation (0) will be not set because the orient does not change (see the test in elm_notify_orient_set())

SVN revision: 50270
2010-07-15 17:41:19 +00:00
Jonathan Atton 2ad9cb0ad5 Elm_Slideshow : rollback, remove the possibility to have more than 1 item display at the same time. We need a specific widget to do this with specifics animations.
SVN revision: 50269
2010-07-15 17:09:59 +00:00
Gustavo Sverzut Barbieri 9d7be6a1f4 fix hide/del bug if thumb generation was pending, reuse objects if possible.
As spotted by Brian, we were not cancelling the thumbnail generation
on hide/delete, when the generation finished garbage would be used and
we'd segv. This commit fixes this, also removing the useless
is_generating, as it can be interpreted from wd->id (-1 is not
generating).

As an optimization, we now just delete the view object if it changed
between image and edje (video), otherwise we reuse it.




SVN revision: 50268
2010-07-15 14:29:17 +00:00
Jonathan Atton 974c982095 Elm_Slideshow: Delete correct objects at the correct time. The expose layout bug in specifics condition.
SVN revision: 50263
2010-07-15 09:30:52 +00:00
Gustavo Sverzut Barbieri 6762573b97 Fix elm_thumb smart callback calling
Currently, elm_thumb is passing the wrong pointer to the
smart_callback_call function, so the callbacks are not being
called. The attached patch fix that.

By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 50258
2010-07-14 21:29:10 +00:00
Gustavo Sverzut Barbieri 7f8627f801 fix widgets that were forcing style to be "default".
SVN revision: 50257
2010-07-14 21:14:52 +00:00
Jonathan Atton 3eaecdafbd Elm_Slideshow:
- Add a new layout : expose
- Add a way to display more than 1 slide at a time, the number of slides displayed is defined in the layout

SVN revision: 50256
2010-07-14 21:12:58 +00:00
Gustavo Lima Chaves 6005cc95e7 Elm notify theme apply.
Patch by k-s.



SVN revision: 50252
2010-07-14 19:04:22 +00:00
Jonathan Atton a05015145d Elm_Photo:
- Add a way to display a photo by keeping the ratio AND the theme can display something around the photo (border ...). The way I use is maybe a bit crappy (embryo, offset ...) but I do not know a better way.
 - Add a new style (with a shadow). The default style has no changes
 If you do not like my way, revert the commit and commit your way :)
 
Elm_Slideshow:
 - Use elm_photo in the test
 - Add a black background

SVN revision: 50248
2010-07-14 14:48:21 +00:00
Jonathan Atton b8e248f29c Add a list of "layout" to elm_slideshow. A layout is like a "sub-style". For example the content can take all the slideshow widget (~fullscreen) or not. I do not have finish to work on it.
SVN revision: 50247
2010-07-14 09:07:43 +00:00
Lucas De Marchi e87ed1007b Remove unneeded code with notnull.cocci script
This continues previous commit with more complex places, where it required
more than just removing some "ifs".



SVN revision: 50242
2010-07-14 02:20:30 +00:00
Lucas De Marchi 6325ab86a3 Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.


SVN revision: 50241
2010-07-14 02:05:47 +00:00
Bruno Dilly 4c02246e5d Use widget style instead of default on elm index items
SVN revision: 50236
2010-07-13 21:33:12 +00:00
Lucas De Marchi 821160957f ops, copy & past fail
I meant clock_val_down_exit_on_error.



SVN revision: 50211
2010-07-13 02:10:00 +00:00
Lucas De Marchi 51429ba1ec Fix dereference of null pointer
Bug found by Coccinelle with 'isnull.cocci' script (Dereference of an
expression that has been checked to be NULL) [1].

[1] http://www.emn.fr/x-info/coccinelle/rules/isnull.html



SVN revision: 50210
2010-07-13 02:01:52 +00:00
Rafael Fonseca e2c8e29aa8 From: Rafael Fonseca <rfonseca@profusion.mobi>
Subject: [E-devel] [PATCH] [Elementary] Fix flickering issue on
elm_slideshow

Hey guys,

the attached patch solves the issue of the previous image flickering 
after the transition is over on elm_slideshow.



SVN revision: 50190
2010-07-12 01:15:52 +00:00
Carsten Haitzler 0fec718cb1 also conform to the includes in name-vmaj dir policy
SVN revision: 50181
2010-07-11 23:34:49 +00:00
Jonathan Atton 24f5b1831b Add the elm notify external object
SVN revision: 50180
2010-07-11 21:19:27 +00:00
Lucas De Marchi 5fa0945d28 Constify parameters of elm_widget_drag_*_get functions
Change "Evas_Object*" to "const Evas_Object*" in:
 * elm_widget_drag_lock_x_get()
 * elm_widget_drag_lock_y_get()
 * elm_widget_drag_child_locked_x_get()
 * elm_widget_drag_child_locked_y_get()

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 50177
2010-07-10 22:05:37 +00:00
Gustavo Sverzut Barbieri 340b0b6f5e Fix gengrid usage of item class style.
By: Leandro "acidx" Pereira <leandro@profusion.mobi>



SVN revision: 50136
2010-07-08 23:17:12 +00:00
Bruno Dilly 5e928b9366 Add possibility to get all the items in Gengrid
By Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 50087
2010-07-06 21:14:38 +00:00
Christopher Michael 12e6621218 Fix warning related to Ecore Api changes.
Fix some formatting.



SVN revision: 50085
2010-07-06 20:16:25 +00:00
titan 25ef450968 Patch to fix gengrid item positioning. From Rafael Fonseca.
SVN revision: 50053
2010-07-06 01:23:54 +00:00
ChunEon Park c2758ed8c9 From: ChunEon Park <chuneon.park@samsung.com>
Subject: elm_animator

an animator wrapper - can be attached to an object (and be deleted if
object is deleted) and otherwise call a callback with a 0.0->1.0 value
where along the path you should be etc. etc. - ie handle higher level
animation runs.



SVN revision: 50039
2010-07-04 23:41:48 +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
Carsten Haitzler 85b65fedf4 expose drag lock (x and y axis).
SVN revision: 49963
2010-07-01 06:59:30 +00:00
Carsten Haitzler 4ee4e9ed5e somone copy & pasted junk into doc comments. bad! fix.
SVN revision: 49962
2010-07-01 06:51:18 +00:00
Brett Nash dee3f41698 TUrn off debug.
SVN revision: 49956
2010-07-01 01:18:32 +00:00