platform/upstream/elementary.git
13 years agoListen Space/Return in some widgets
Tiago Rezende Campos Falcao [Wed, 22 Sep 2010 17:45:49 +0000 (17:45 +0000)]
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

13 years agoFocus suport for some widgets
Tiago Rezende Campos Falcao [Wed, 22 Sep 2010 17:45:46 +0000 (17:45 +0000)]
Focus suport for some widgets

Widgets:
* check
* radio
* slider
* toggle
* spinner
* slideshow

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

SVN revision: 52599

13 years agoComplete some widgets with activate_hook
Tiago Rezende Campos Falcao [Wed, 22 Sep 2010 17:45:43 +0000 (17:45 +0000)]
Complete some widgets with activate_hook

widgets:
* button
* check
* file selector button
* hoversel
* radio

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

SVN revision: 52598

13 years agoBetter temporary handling for CNP.
Brett Nash [Wed, 22 Sep 2010 04:42:41 +0000 (04:42 +0000)]
Better temporary handling for CNP.

SVN revision: 52563

13 years agoVcard send.
Brett Nash [Wed, 22 Sep 2010 04:42:36 +0000 (04:42 +0000)]
Vcard send.

SVN revision: 52562

13 years agoFrom: Otávio Pontes <otavio@profusion.mobi>
Otávio Pontes [Wed, 22 Sep 2010 00:33:17 +0000 (00:33 +0000)]
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

13 years agoMinor formatting fix.
Christopher Michael [Tue, 21 Sep 2010 20:09:29 +0000 (20:09 +0000)]
Minor formatting fix.

SVN revision: 52556

13 years ago Fix reverting focus to the previous widget.
Gustavo Lima Chaves [Tue, 21 Sep 2010 18:55:32 +0000 (18:55 +0000)]
 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

13 years ago Creating a transition layout for elm_box.
Iván Briano [Tue, 21 Sep 2010 14:06:29 +0000 (14:06 +0000)]
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

13 years agoElementary event propagation to widget parents
Tiago Rezende Campos Falcao [Tue, 21 Sep 2010 02:02:24 +0000 (02:02 +0000)]
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

13 years agoBegins highlight on focused object.
Iván Briano [Mon, 20 Sep 2010 22:18:58 +0000 (22:18 +0000)]
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

13 years agoFix typo, we want the parent, not some random data
Iván Briano [Mon, 20 Sep 2010 19:54:48 +0000 (19:54 +0000)]
Fix typo, we want the parent, not some random data

SVN revision: 52506

13 years agoFix typos
Lucas De Marchi [Mon, 20 Sep 2010 17:09:13 +0000 (17:09 +0000)]
Fix typos

"he->the" where appropriate

SVN revision: 52493

13 years ago elementary: image orientation seems to work quite nicely, so let's enable it.
Chidambar Zinnoury [Sun, 19 Sep 2010 17:36:26 +0000 (17:36 +0000)]
 elementary: image orientation seems to work quite nicely, so let's enable it.

SVN revision: 52466

13 years agoFrom: 김지훈 <imfine98@gmail.com>
김지훈 [Sun, 19 Sep 2010 02:30:14 +0000 (02:30 +0000)]
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

13 years agoelm_entry has ELM_CURSOR_XTERM by default.
Gustavo Sverzut Barbieri [Fri, 17 Sep 2010 22:28:29 +0000 (22:28 +0000)]
elm_entry has ELM_CURSOR_XTERM by default.

SVN revision: 52388

13 years agoAvoid losing the reference to the parent object
Iván Briano [Fri, 17 Sep 2010 22:10:04 +0000 (22:10 +0000)]
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

13 years agoCreate some tests for elm cursor
Bruno Dilly [Fri, 17 Sep 2010 18:26:04 +0000 (18:26 +0000)]
Create some tests for elm cursor

Covering widgets and widget's items

SVN revision: 52383

13 years agoAdd support on Elm to customized cursors
Bruno Dilly [Fri, 17 Sep 2010 18:24:10 +0000 (18:24 +0000)]
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

13 years agoFix tests to use the void *data instead of const...
Gustavo Sverzut Barbieri [Fri, 17 Sep 2010 16:34:59 +0000 (16:34 +0000)]
Fix tests to use the void *data instead of const...

SVN revision: 52374

13 years agoMissing "const void *data" -> "void *data" in the API
Gustavo Sverzut Barbieri [Fri, 17 Sep 2010 16:34:11 +0000 (16:34 +0000)]
Missing "const void *data" -> "void *data" in the API

SVN revision: 52373

13 years agoConstant void data is pretty useless in item callback contexts.
Gustavo Sverzut Barbieri [Fri, 17 Sep 2010 16:21:34 +0000 (16:21 +0000)]
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

13 years agoFix misspelling in elementary documentation
Otávio Pontes [Fri, 17 Sep 2010 13:37:36 +0000 (13:37 +0000)]
Fix misspelling in elementary documentation

Patch by: "Otávio Pontes" <otavio@profusion.mobi>

SVN revision: 52367

13 years ago * elementary: make it possible to disable quick launch manually.
Cedric BAIL [Fri, 17 Sep 2010 13:29:53 +0000 (13:29 +0000)]
* elementary: make it possible to disable quick launch manually.

SVN revision: 52366

13 years ago * elementary: make it possible to disable some binary.
Cedric BAIL [Fri, 17 Sep 2010 13:18:13 +0000 (13:18 +0000)]
* elementary: make it possible to disable some binary.

SVN revision: 52365

13 years agoMove cnp/dnd -> elm_widget. Officially Experimental for apps.
Brett Nash [Fri, 17 Sep 2010 05:39:04 +0000 (05:39 +0000)]
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

13 years agoVcard support for dnd.
Brett Nash [Fri, 17 Sep 2010 05:39:00 +0000 (05:39 +0000)]
Vcard support for dnd.

SVN revision: 52358

13 years agoelm AUTHORS += nash
Brett Nash [Fri, 17 Sep 2010 05:38:57 +0000 (05:38 +0000)]
elm AUTHORS += nash

SVN revision: 52357

13 years agofix warnings with elm_object_tooltip_unset().
Gustavo Sverzut Barbieri [Thu, 16 Sep 2010 23:44:02 +0000 (23:44 +0000)]
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

13 years agoelm_smart_scroller now propagates the events, fixes tooltips in scrolled stuff.
Gustavo Sverzut Barbieri [Thu, 16 Sep 2010 21:33:10 +0000 (21:33 +0000)]
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

13 years agofix button test.
Carsten Haitzler [Thu, 16 Sep 2010 07:11:32 +0000 (07:11 +0000)]
fix button test.

SVN revision: 52338

13 years agoprintf--
Carsten Haitzler [Thu, 16 Sep 2010 06:55:22 +0000 (06:55 +0000)]
printf--

SVN revision: 52337

13 years agofix anchorblock test.
Carsten Haitzler [Thu, 16 Sep 2010 06:53:42 +0000 (06:53 +0000)]
fix anchorblock test.

SVN revision: 52336

13 years agojust a sec. back that out.. someone has broken icons.. and now i dont
Carsten Haitzler [Thu, 16 Sep 2010 05:33:19 +0000 (05:33 +0000)]
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

13 years agoFrom: 이명재 <mjae.lee@samsung.com>
이명재 [Thu, 16 Sep 2010 05:23:34 +0000 (05:23 +0000)]
From: 이명재 <mjae.lee@samsung.com>
Subject: patch for elm_widget_show_region_set function

SVN revision: 52334

13 years agoelm cnp: Minor fixme cleanup.
Brett Nash [Wed, 15 Sep 2010 08:23:06 +0000 (08:23 +0000)]
elm cnp: Minor fixme cleanup.

SVN revision: 52290

13 years agoUntested fix for edje external elm_panes
Brett Nash [Wed, 15 Sep 2010 06:39:43 +0000 (06:39 +0000)]
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

13 years agoElm DND/Sel: Update typenames to be more consistent.
Brett Nash [Wed, 15 Sep 2010 06:29:49 +0000 (06:29 +0000)]
Elm DND/Sel: Update typenames to be more consistent.

SVN revision: 52286

13 years agoelm_thumb: Can now be dragged too.
Brett Nash [Wed, 15 Sep 2010 05:42:19 +0000 (05:42 +0000)]
elm_thumb: Can now be dragged too.

SVN revision: 52285

13 years agoslider -> handle theme change.
Carsten Haitzler [Wed, 15 Sep 2010 05:07:12 +0000 (05:07 +0000)]
slider -> handle theme change.

SVN revision: 52284

13 years agomove check up.
Carsten Haitzler [Wed, 15 Sep 2010 03:11:30 +0000 (03:11 +0000)]
move check up.

SVN revision: 52281

13 years agoprogressbar handles theme change right
Carsten Haitzler [Wed, 15 Sep 2010 00:09:03 +0000 (00:09 +0000)]
progressbar handles theme change right

SVN revision: 52280

13 years agohandle theme change - bubble.
Carsten Haitzler [Tue, 14 Sep 2010 23:46:01 +0000 (23:46 +0000)]
handle theme change - bubble.

SVN revision: 52278

13 years agook strange bg bug when theme changing on the fly. why?
Carsten Haitzler [Tue, 14 Sep 2010 23:42:50 +0000 (23:42 +0000)]
ok strange bg bug when theme changing on the fly. why?

SVN revision: 52277

13 years agospot check of theme change... panes not working right. generally code
Carsten Haitzler [Tue, 14 Sep 2010 23:42:31 +0000 (23:42 +0000)]
spot check of theme change... panes not working right. generally code
was poor. fixed.

SVN revision: 52276

13 years agomove some of quicklaunch into the sub init to reduce fd inheriting
Carsten Haitzler [Tue, 14 Sep 2010 21:58:48 +0000 (21:58 +0000)]
move some of quicklaunch into the sub init to reduce fd inheriting
chances. still ecore is an issue.

SVN revision: 52271

13 years agoAdd tests for elm clock using time different from the system
Bruno Dilly [Tue, 14 Sep 2010 21:40:08 +0000 (21:40 +0000)]
Add tests for elm clock using time different from the system

SVN revision: 52269

13 years agoImprove elm clock to display time not equal to system time
Bruno Dilly [Tue, 14 Sep 2010 21:39:14 +0000 (21:39 +0000)]
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

13 years agoFix elm calendar test 2 windows title
Bruno Dilly [Tue, 14 Sep 2010 21:36:56 +0000 (21:36 +0000)]
Fix elm calendar test 2 windows title

SVN revision: 52266

13 years agoinclude Evil.h for localtime_r()
Vincent Torri [Tue, 14 Sep 2010 21:26:43 +0000 (21:26 +0000)]
include Evil.h for localtime_r()

SVN revision: 52265

13 years agocomments match correct code.
Carsten Haitzler [Tue, 14 Sep 2010 11:56:48 +0000 (11:56 +0000)]
comments match correct code.

SVN revision: 52241

13 years agoFix elm_thumb_ethumb_client_get so the application doesn't need a define.
Brett Nash [Tue, 14 Sep 2010 07:03:31 +0000 (07:03 +0000)]
Fix elm_thumb_ethumb_client_get so the application doesn't need a define.

SVN revision: 52237

13 years agoAllow multiple calls to need_ethumb, efree and edbus without messing
Brett Nash [Tue, 14 Sep 2010 07:01:57 +0000 (07:01 +0000)]
Allow multiple calls to need_ethumb, efree and edbus without messing
everything up.

SVN revision: 52235

13 years agoPartially fix sizing for the DND window.
Brett Nash [Mon, 13 Sep 2010 09:16:09 +0000 (09:16 +0000)]
Partially fix sizing for the DND window.

SVN revision: 52186

13 years agoPosition subwindow correctly.
Brett Nash [Mon, 13 Sep 2010 09:16:05 +0000 (09:16 +0000)]
Position subwindow correctly.

SVN revision: 52185

13 years agoAdd a semicolon. GCC: This ones for you.
Brett Nash [Mon, 13 Sep 2010 09:16:01 +0000 (09:16 +0000)]
Add a semicolon.  GCC: This ones for you.

SVN revision: 52184

13 years agoas brett said - kill test_drag.c
Carsten Haitzler [Mon, 13 Sep 2010 07:58:03 +0000 (07:58 +0000)]
as brett said - kill test_drag.c

SVN revision: 52179

13 years agooooh big cleanup. internal elm widget api cleaned up a bit.
Carsten Haitzler [Mon, 13 Sep 2010 07:56:23 +0000 (07:56 +0000)]
oooh big cleanup. internal elm widget api cleaned up a bit.

SVN revision: 52178

13 years agoTooltips: split owner/eventarea, allow subitems to have indepentent tooltips.
Gustavo Sverzut Barbieri [Sun, 12 Sep 2010 21:05:13 +0000 (21:05 +0000)]
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

13 years agoFix tooltip visibility lock.
Gustavo Sverzut Barbieri [Sun, 12 Sep 2010 17:46:44 +0000 (17:46 +0000)]
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

13 years agoTooltips are now uber cool!
Gustavo Sverzut Barbieri [Sun, 12 Sep 2010 17:24:45 +0000 (17:24 +0000)]
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

13 years agoProvide some known Evas_Object layers and set tooltip's to its designed value.
Gustavo Sverzut Barbieri [Sat, 11 Sep 2010 17:01:40 +0000 (17:01 +0000)]
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

13 years agoWelcome Tooltips.
Gustavo Sverzut Barbieri [Sat, 11 Sep 2010 00:52:33 +0000 (00:52 +0000)]
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

13 years agoRemove spurious underscores.
Brett Nash [Fri, 10 Sep 2010 09:03:05 +0000 (09:03 +0000)]
Remove spurious underscores.

SVN revision: 52130

13 years agoElm photo stops scrolling events when dragging now.
Brett Nash [Fri, 10 Sep 2010 08:24:29 +0000 (08:24 +0000)]
Elm photo stops scrolling events when dragging now.

SVN revision: 52129

13 years agoUse hold flag for detecting drags.
Brett Nash [Fri, 10 Sep 2010 08:24:25 +0000 (08:24 +0000)]
Use hold flag for detecting drags.

SVN revision: 52128

13 years agoElm; drag_start now has a donecb.
Brett Nash [Fri, 10 Sep 2010 08:24:21 +0000 (08:24 +0000)]
Elm; drag_start now has a donecb.

SVN revision: 52127

13 years agoElm: cnp: Handle non-uri uris when searching
Brett Nash [Fri, 10 Sep 2010 07:24:10 +0000 (07:24 +0000)]
Elm: cnp: Handle non-uri uris when searching

SVN revision: 52126

13 years agoelm photo: Long press now tracks mouse movements.
Brett Nash [Fri, 10 Sep 2010 07:24:07 +0000 (07:24 +0000)]
elm photo: Long press now tracks mouse movements.

SVN revision: 52125

13 years agoUse file urls for files (hack hack hack).
Brett Nash [Fri, 10 Sep 2010 07:24:03 +0000 (07:24 +0000)]
Use file urls for files (hack hack hack).

SVN revision: 52124

13 years agoBit of dnd work.
Brett Nash [Fri, 10 Sep 2010 07:23:56 +0000 (07:23 +0000)]
Bit of dnd work.

SVN revision: 52123

13 years agoUse elm_widget_item common base.
Gustavo Sverzut Barbieri [Fri, 10 Sep 2010 02:05:45 +0000 (02:05 +0000)]
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

13 years agoDisconnect from signals if the pan_obj goes away.
Gustavo Sverzut Barbieri [Fri, 10 Sep 2010 02:01:32 +0000 (02:01 +0000)]
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

13 years agoIntroducing Elm_Widget_Item: common ground for widget sub items.
Gustavo Sverzut Barbieri [Fri, 10 Sep 2010 01:54:05 +0000 (01:54 +0000)]
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

13 years agoJust delete children and related from del_pre_hook, not del_hook!
Gustavo Sverzut Barbieri [Fri, 10 Sep 2010 01:40:50 +0000 (01:40 +0000)]
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

13 years agoJust delete children and related from del_pre_hook, not del_hook!
Gustavo Sverzut Barbieri [Fri, 10 Sep 2010 01:35:46 +0000 (01:35 +0000)]
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

13 years agoJust delete children and related from del_pre_hook, not del_hook!
Gustavo Sverzut Barbieri [Fri, 10 Sep 2010 01:29:06 +0000 (01:29 +0000)]
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

13 years agoDon't cast Eina_Inlist directly to Elm_Genlist_Item.
Gustavo Sverzut Barbieri [Fri, 10 Sep 2010 01:04:19 +0000 (01:04 +0000)]
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

13 years agodon't report callbacks on NULL object.
Gustavo Sverzut Barbieri [Fri, 10 Sep 2010 00:28:47 +0000 (00:28 +0000)]
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

13 years agoAdd signal emit hook to gengrid.
Rafael Fonseca [Thu, 9 Sep 2010 22:01:30 +0000 (22:01 +0000)]
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

13 years agoRemove annoying blank lines inside elm test_launcher file
Bruno Dilly [Thu, 9 Sep 2010 19:42:16 +0000 (19:42 +0000)]
Remove annoying blank lines inside elm test_launcher file

SVN revision: 52103

13 years agosome -Wall -Wextra warning cleanups.
Gustavo Sverzut Barbieri [Thu, 9 Sep 2010 19:39:30 +0000 (19:39 +0000)]
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

13 years agoRemove some unused variables from elm tests and externals
Bruno Dilly [Thu, 9 Sep 2010 19:35:53 +0000 (19:35 +0000)]
Remove some unused variables from elm tests and externals

SVN revision: 52101

13 years agoFix layout options used by external elm_slideshow
Bruno Dilly [Thu, 9 Sep 2010 19:34:58 +0000 (19:34 +0000)]
Fix layout options used by external elm_slideshow

SVN revision: 52099

13 years agoAdd Elm prefix to struct _Menu_Item.
Gustavo Sverzut Barbieri [Thu, 9 Sep 2010 19:34:56 +0000 (19:34 +0000)]
Add Elm prefix to struct _Menu_Item.

I've noticed this while grepping the code.

SVN revision: 52098

13 years agoAdd elm object signal emit and callback add / del hooks to entry, list and index
Bruno Dilly [Thu, 9 Sep 2010 18:53:36 +0000 (18:53 +0000)]
Add elm object signal emit and callback add / del hooks to entry, list and index

SVN revision: 52087

13 years agoMore compilation fixes. FIxing for windows broke linux...
Brett Nash [Thu, 9 Sep 2010 09:37:19 +0000 (09:37 +0000)]
More compilation fixes.  FIxing for windows broke linux...

SVN revision: 52038

13 years agoFix typo from cut & paste
Brett Nash [Thu, 9 Sep 2010 09:12:08 +0000 (09:12 +0000)]
Fix typo from cut & paste

SVN revision: 52037

13 years agoHooks for dragging: not working, just so I can push.
Brett Nash [Thu, 9 Sep 2010 08:59:42 +0000 (08:59 +0000)]
Hooks for dragging: not working, just so I can push.

SVN revision: 52036

13 years agoStubs + hide stuff for crazy fr^H^Hwindows users.
Brett Nash [Thu, 9 Sep 2010 08:59:38 +0000 (08:59 +0000)]
Stubs + hide stuff for crazy fr^H^Hwindows users.

SVN revision: 52035

13 years agoFix some uncommon typos. A full list is included in the patch.
Brett Nash [Thu, 9 Sep 2010 08:59:34 +0000 (08:59 +0000)]
Fix some uncommon typos.  A full list is included in the patch.

SVN revision: 52034

13 years agoSet size first, to avoid broken sizing in elm_photo
Brett Nash [Thu, 9 Sep 2010 06:05:31 +0000 (06:05 +0000)]
Set size first, to avoid broken sizing in elm_photo

SVN revision: 52027

13 years agoelm: debug --;
Brett Nash [Thu, 9 Sep 2010 06:05:28 +0000 (06:05 +0000)]
elm: debug --;

SVN revision: 52026

13 years agoelm: dnd: Leak less.
Brett Nash [Thu, 9 Sep 2010 05:37:02 +0000 (05:37 +0000)]
elm: dnd: Leak less.

SVN revision: 52025

13 years agoUse callback instead of evil printf hack.
Brett Nash [Thu, 9 Sep 2010 03:09:49 +0000 (03:09 +0000)]
Use callback instead of evil printf hack.

I wish I knew why the other method didn't work.

SVN revision: 52022

13 years agoHandle jpegs like we do pngs ;-)
Brett Nash [Thu, 9 Sep 2010 03:09:46 +0000 (03:09 +0000)]
Handle jpegs like we do pngs ;-)

SVN revision: 52021

13 years agoindentationally inspired patch.
Brett Nash [Thu, 9 Sep 2010 03:09:42 +0000 (03:09 +0000)]
indentationally inspired patch.

SVN revision: 52020

13 years agoRemove some debug, add some FIXMEs
Brett Nash [Thu, 9 Sep 2010 03:09:28 +0000 (03:09 +0000)]
Remove some debug, add some FIXMEs

SVN revision: 52019

13 years ago Scrolled Entry: forward the event_info from the entry to the
Davide Andreoli [Thu, 9 Sep 2010 01:07:50 +0000 (01:07 +0000)]
 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

13 years agoFix common misspellings
Lucas De Marchi [Thu, 9 Sep 2010 00:35:43 +0000 (00:35 +0000)]
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