Commit Graph

1321 Commits

Author SHA1 Message Date
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
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
Bruno Dilly 139985f471 Remove annoying blank lines inside elm test_launcher file
SVN revision: 52103
2010-09-09 19:42:16 +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
Bruno Dilly a0da368667 Remove some unused variables from elm tests and externals
SVN revision: 52101
2010-09-09 19:35:53 +00:00
Bruno Dilly a06fdc1b84 Fix layout options used by external elm_slideshow
SVN revision: 52099
2010-09-09 19:34:58 +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 b9b1049215 Set size first, to avoid broken sizing in elm_photo
SVN revision: 52027
2010-09-09 06:05:31 +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 2db7870780 Use callback instead of evil printf hack.
I wish I knew why the other method didn't work.

SVN revision: 52022
2010-09-09 03:09:49 +00:00