Commit Graph

29 Commits

Author SHA1 Message Date
Christopher Michael bd09f79ddf Add UNUSED
SVN revision: 51321
2010-08-18 19:31:31 +00:00
Lucas De Marchi 6638a10e20 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
Cedric BAIL 70969e8b9f * e: prevent segv when reinserting the same object. Should never happen
but better to not segv.


SVN revision: 47558
2010-03-29 16:11:08 +00:00
Christopher Michael 6ab63682dd Fix API Inconsistency in regards to e_widget_min_size_* . Renamed to
e_widget_size_min_* . This Large commit should fix everything in svn that is
using those functions.



SVN revision: 42152
2009-09-01 13:34:42 +00:00
Gustavo Sverzut Barbieri 413729a142 get zone from gadcon.
The old code that query the zone based on x,y was causing me
segfaults. When battery module was in a hidden shelf, the position was
outside any zone and then segmentation fault.

As far as I understand, gcc->gadcon->zone should always exist and
always be correct, but I don't have xinerama setup now to confirm
that.

If you know this is wrong, let me know!



SVN revision: 41147
2009-06-21 21:18:44 +00:00
Viktor Kojouharov c1dd656e64 remove all traces of the resize callback function. it iss not needed anymore
SVN revision: 40940
2009-06-07 08:56:16 +00:00
Gustavo Sverzut Barbieri 987192c54d fix bugs of gadgets using incorrect zones.
I found strange behavior in my configuration (xinerama - two screens
with two zones). When i select a Enlightenment->Restart from menu the
popups for gadgets on desktop doesn't appear or appear wrongly. After
some time i've found that this depends on on from what screen i am
choosing this enlightenment->restart :)

After some debugging i figured it out:

When restarting enlightenment some gadgets (i.e. calendar) are calling
e_gadgon_popup_new(). Inside that function, zone for popup window
(this zone was used later in ecore_evas_move_resize) is calculated
like that:

{{{
zone = e_util_zone_current_get(e_manager_current_get());
and in e_manager_current_get is: ecore_x_pointer_xy_get()
}}}

... so - i have my answer why restaring from one screen (cursor was on
that screen) and from second screen i have different results...

In other words: during initializing module like calendar - created
zone for popup is assigned depending on current cursor position.

In my patch i've chage this to obtain zone using the gadget position
instead.  But it solves the problem partialy.

Next thing - in function:

e_gadget_popup_show() (which is called later) when calculating popup
position coordinates was calculated using zone:

{{{
pop->gcc->gadcon->zone
}}}

which in my case was always the first (initial) zone - (of course it
was wrong, because i put a gadgets on different screens for testing).
so i changed it to zone of popup window (which was calculated before,
in e_gadgon_popup_new()) and after that everythings works ok :) Zones
for popups are correctly assigned and popups calculation are also ok -
even after restaring enlightenment (tested with cursor on both
screens).

By: manio



SVN revision: 40927
2009-06-06 23:40:58 +00:00
Viktor Kojouharov 293b3d41dd e_gadcon_popup now responds to changes in the content's size hint changes, and resizes itself accordingly.
with this, the resize func will no longer be needed, if users of the popup set the size_min hint of the content of the popup.


SVN revision: 40864
2009-05-31 15:48:26 +00:00
Viktor Kojouharov 0c1f13b9c3 do full size calc when the content is set, not when it is shown
SVN revision: 40813
2009-05-24 10:02:56 +00:00
Viktor Kojouharov 64d51112ed never a good idea to place the popup origin at negative coordinates
SVN revision: 39332
2009-03-02 15:18:42 +00:00
Hannes Janetzek 887264eed4 added e_gadcon_locked_set: with this gadgets can lock the gadcon from
vanishing, like with e_shelf_locked_set. gadcon providers set their own lock 
function with e_gadcon_util_lock_func_set, which is called by 
e_gadcon_locked_set.


SVN revision: 38759
2009-01-24 14:09:37 +00:00
Gustavo Sverzut Barbieri 9dc52497b2 oops, just lock shelf if configured to do so.
SVN revision: 38535
2009-01-10 14:17:42 +00:00
Gustavo Sverzut Barbieri 4ae928cf1a gadcon popup should lock shelf.
It's nasty to have shelf auto-hided when you have a popup like mixer
or battery warning, so gadcon popups will now lock shelf while they're
visible.

Developers can go back to old behaviour setting the appropriate flag
with e_gadcon_popup_shelf_lock_set().



SVN revision: 38530
2009-01-10 07:35:53 +00:00
Viktor Kojouharov c35a5edffd one too many breaks
SVN revision: 37917
2008-12-03 22:21:17 +00:00
Chidambar Zinnoury 1ecc76d8b9 OK, in doubt, calculate dimensions anyway and call resize func after that. Some modules expect them to be filled so that they can "correct" them.
This will fix all of them.


SVN revision: 36851
2008-10-20 12:18:37 +00:00
Chidambar Zinnoury d052870ff0 Correct gadcon popup dimensions computation.
SVN revision: 36806
2008-10-19 10:41:50 +00:00
Carsten Haitzler 2fe970f02a fix gadcon popups across multiple zones.
SVN revision: 36120
2008-09-20 05:16:49 +00:00
Carsten Haitzler 0a8ffffa5f add in gadman for desktop. happy dave! :)
SVN revision: 34610
2008-05-19 04:37:34 +00:00
Gustavo Sverzut Barbieri ce808eb614 Remove unused E_Gadcon_Popup->o_con
SVN revision: 33680
2008-02-05 16:39:22 +00:00
Gustavo Sverzut Barbieri 5ebcf31112 Avoid invalid read, remove useless calls.
e_object_del(E_OBJECT(pop->win)) will call ecore_evas_free() which
calls evas_free() which deletes all the objects, making pop->o_bg a
invalid read in its evas_object_del(). So it must be reordered, even
better the evas_object_del(pop->o_bg) can be avoided.

Since the window is deleted, no need to e_gadcon_popup_toggle_pinned()
it.

PS: need to check if there are users of o_con, if not, it should be
removed too.


SVN revision: 33679
2008-02-05 16:33:24 +00:00
Christopher Michael 2a34d931f1 Handle corner cases where popup X may be less than the zone X.
SVN revision: 33396
2008-01-08 19:33:48 +00:00
Christopher Michael 0f8558761f Center gadcon popups over their respective gadgets, not aligned to the left.
SVN revision: 33390
2008-01-08 06:12:22 +00:00
Christopher Michael 1e54439422 Set popup layer == layer of the exebuf.
Fix some formatting issues.


SVN revision: 33124
2007-12-13 19:27:02 +00:00
Christopher Michael fe9b6df746 Fix formatting.
SVN revision: 32738
2007-11-16 22:27:35 +00:00
Sebastian Dransfeld af9dd29dfc Pass the user supplied Evas_Object to the resize func, as the user
shouldn't deal with the popup Evas_Object.


SVN revision: 31559
2007-08-27 21:39:12 +00:00
Christopher Michael a0f9462d1d Add gcc suggested parens around assignment.
SVN revision: 31533
2007-08-26 17:20:46 +00:00
Viktor Kojouharov 258bdce586 recalc the min size, in case the container changes it's geometry
SVN revision: 31512
2007-08-26 11:16:31 +00:00
Viktor Kojouharov 66260d1cc5 extra null check, since E_OBJECT_CHECK doesn't even check that
SVN revision: 31493
2007-08-25 09:41:25 +00:00
Viktor Kojouharov b0d4ef2ea9 info popup for gadcon clients
SVN revision: 31432
2007-08-20 18:50:20 +00:00