Commit Graph

1347 Commits

Author SHA1 Message Date
Gustavo Sverzut Barbieri 902819723b Fix tests to use the void *data instead of const...
SVN revision: 52374
2010-09-17 16:34:59 +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
Cedric BAIL def2ebbdbf * elementary: make it possible to disable quick launch manually.
SVN revision: 52366
2010-09-17 13:29:53 +00:00
Cedric BAIL 51196bbc21 * elementary: make it possible to disable some binary.
SVN revision: 52365
2010-09-17 13:18:13 +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
Brett Nash bf47c891d2 elm AUTHORS += nash
SVN revision: 52357
2010-09-17 05:38:57 +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 5e11f54d20 fix button test.
SVN revision: 52338
2010-09-16 07:11:32 +00:00
Carsten Haitzler 22776449b9 printf--
SVN revision: 52337
2010-09-16 06:55:22 +00:00
Carsten Haitzler 73d8529ad6 fix anchorblock test.
SVN revision: 52336
2010-09-16 06:53:42 +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 38997599c8 Untested fix for edje external elm_panes
It was elm_panes_horizontal_is, but grep shows no matches.
So I'm guessing horiztonal_get.
Seems was originally comited by watchwolf when the file was added.

SVN revision: 52287
2010-09-15 06:39:43 +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 c7986de741 Add tests for elm clock using time different from the system
SVN revision: 52269
2010-09-14 21:40:08 +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
Bruno Dilly 0c0749bdde Fix elm calendar test 2 windows title
SVN revision: 52266
2010-09-14 21:36:56 +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 75e72a16b0 as brett said - kill test_drag.c
SVN revision: 52179
2010-09-13 07:58:03 +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