Commit Graph

275 Commits

Author SHA1 Message Date
Mike Blumenkrantz 6f79521d41 better autohide fix
SVN revision: 76933
2012-09-21 07:27:33 +00:00
Mike Blumenkrantz 8b12df9a4a increase shelf size when checking to see if pointer is inside to ensure autohide picks it up properly
SVN revision: 76932
2012-09-21 07:18:53 +00:00
Mike Blumenkrantz 170c6d97c3 tweak from previous shelf draw optimizing commit: now add a handler for module init end to more accurately check gadcon populate requests so we can determine if a shelf is "empty" and then show it. fixes case where a shelf has gadgets but none are populated because the modules are all unloaded
SVN revision: 76909
2012-09-20 13:06:15 +00:00
Mike Blumenkrantz 28eabf7ef0 only block shelf drawing when shelf has none of its clients drawn, not when it has no clients
SVN revision: 76907
2012-09-20 12:35:29 +00:00
Mike Blumenkrantz 5e0b6fd200 reorder shelf startup slightly, add gadcon populate event, only show created shelf after it's been populated, populate gadcons incrementally instead of all at once
this commit reduces my startup time by 0.5-1.0 seconds on average when using two shelves


SVN revision: 76894
2012-09-20 08:44:30 +00:00
Mike Blumenkrantz b7cff28128 base shelf menu now has option to begin/end moving gadgets
SVN revision: 76781
2012-09-18 07:08:41 +00:00
Mike Blumenkrantz d747ac76aa don't close shelf config dialog when changing orientation from menu
SVN revision: 76373
2012-09-10 08:04:09 +00:00
Mike Blumenkrantz a788723e41 set shelf autohide on creation, ensure autohide settings have been applied
ticket #1482


SVN revision: 76346
2012-09-08 19:23:25 +00:00
Mike Blumenkrantz c61c107346 shelves now only watch all mouse events when autohide is set since a static shelf doesn't need to care about it; this will save some amount of cpu I guess
this also breaks the use of e,state,focused programs on non-autohiding shelves, but nothing I'm aware of has ever used this, sooooooo :)
also probably fixes ticket #1467


SVN revision: 76320
2012-09-07 18:59:43 +00:00
Mike Blumenkrantz 4e68cc3ceb avoid unnecessary comparisons from previous commit in some cases
SVN revision: 76317
2012-09-07 18:21:29 +00:00
Mike Blumenkrantz e841e2f920 grrrr yet another systray-related shelf autohiding bug
SVN revision: 76316
2012-09-07 18:16:23 +00:00
Mike Blumenkrantz 620b6330cf add menu item to shelf menu to change orientation on the fly
SVN revision: 76311
2012-09-07 13:44:25 +00:00
Mike Blumenkrantz 60c4343df4 new shelf starter dialog now brings up shelf contents dialog after adding a new shelf
SVN revision: 76304
2012-09-07 12:47:24 +00:00
Mike Blumenkrantz 86c58b136b move shelf add starter dialog to shelf internals and clean up shelf config dialog
SVN revision: 76302
2012-09-07 12:42:29 +00:00
Mike Blumenkrantz 4c89c8ccb1 add mechanism for deleting gadcon configs, shelf deletion now triggers gadcon deletion, fix crash when renaming shelves, prevent shelves from being renamed to the same name as another shelf, fix bug where gadcon client ordering would increase infinitely when adding/removing/redrawing gadgets
SVN revision: 76297
2012-09-07 11:00:25 +00:00
Mike Blumenkrantz 54ea19dc37 delete shelf objects before event to trigger gadcon sub-events
SVN revision: 76292
2012-09-07 10:07:09 +00:00
Mike Blumenkrantz 2d0c34fc28 another change I've been wanting to make for a long time: e_entry_dialog now has the data param first
SVN revision: 75983
2012-09-03 09:06:10 +00:00
Mike Blumenkrantz 4c0fa2d381 big roundup commit fixing leaky submenus
SVN revision: 75973
2012-09-03 08:30:39 +00:00
Mike Blumenkrantz c4ae7b8a20 remove unused variable
SVN revision: 75970
2012-09-03 07:59:17 +00:00
Mike Blumenkrantz 3f3466c415 fix crashing when deleting shelves
ticket #1439


SVN revision: 75924
2012-08-31 18:58:18 +00:00
Mike Blumenkrantz 7613e22a87 set shelves to clip to their zone when drawn on container, pop an error dialog when popup shelves with autohiding exist next to another zone
ticket #1362


SVN revision: 75646
2012-08-24 09:03:34 +00:00
Mike Blumenkrantz a8beb0950c fix usage of PATH_MAX when not working with files
SVN revision: 75518
2012-08-22 07:02:41 +00:00
Carsten Haitzler 40a67e9222 streamline gadget menu to move move item to main menu.
SVN revision: 75407
2012-08-18 10:54:02 +00:00
Mike Blumenkrantz 8fbbb8c002 hopefully nobody noticed that this was completely broken when I first committed it
SVN revision: 75373
2012-08-17 08:33:46 +00:00
Mike Blumenkrantz e63f8c7f4d add event for shelf deletion
SVN revision: 75371
2012-08-17 08:23:09 +00:00
Carsten Haitzler 74df9a238b make invisible shelves work again... and actually fi the longer
standing bug of them not chanigng until a restart



SVN revision: 75339
2012-08-17 00:25:37 +00:00
Mike Blumenkrantz b2ef5f76b1 avoid emitting shelf signals and toggling visibility constantly when shelf is already visible
SVN revision: 75253
2012-08-14 12:22:12 +00:00
Mike Blumenkrantz 75b991a76c shelf style is now properly applied during creation
SVN revision: 75246
2012-08-14 09:11:47 +00:00
Mike Blumenkrantz 6e9de5d01f add rename option to shelf right click menu, also externally accessible function to pop this dialog
SVN revision: 74976
2012-08-07 10:48:47 +00:00
Carsten Haitzler 7c987dcd1f use zome num, not id so we all acree on zome num now... not id... :)
SVN revision: 74975
2012-08-07 10:47:55 +00:00
Mike Blumenkrantz 7623fa4de0 add new functions for renaming a shelf/gadcon in the process of hunting #1286
SVN revision: 74973
2012-08-07 10:28:28 +00:00
Mike Blumenkrantz 3b2587d064 only delete gadcon stuff from a shelf if it isn't a dummy
SVN revision: 74633
2012-07-31 09:48:02 +00:00
Mike Blumenkrantz 873febc02b dummy shelves don't need to be a gadcon site, also properly export prototype
SVN revision: 74631
2012-07-31 09:43:10 +00:00
Carsten Haitzler 0b91025ba2 somehow... something broke shelf position on my 2nd disply. fix it!
SVN revision: 74549
2012-07-30 03:46:34 +00:00
Christopher Michael d885235ebc E: Fix default shelf size.
Currently, for existing shelf sizes, we calculate against e_scale so
the default size of 40 should be adjusted against e_scale also.



SVN revision: 74535
2012-07-28 15:32:50 +00:00
Christopher Michael d9060b15d6 E: Format shelf code for 80 columns so I can hunt this bugger I am
seeing.



SVN revision: 74534
2012-07-28 15:20:08 +00:00
Mike Blumenkrantz 1980833a09 use e_shelf_style_set() when creating a new shelf; duplication--
SVN revision: 74492
2012-07-27 13:46:06 +00:00
Mike Blumenkrantz 2179306800 fix some cases where zone/shelf handling was wrong and would lead to shelves being shown when they shouldn't
ticket #862


SVN revision: 74225
2012-07-20 09:37:15 +00:00
Mike Blumenkrantz 891e11ef0e shelf doesn't allow gadgets to be resized any more, so no point in text claiming they can
SVN revision: 73575
2012-07-11 13:03:32 +00:00
Mike Blumenkrantz 75b80031eb fix shelf autohiding in some cases where only 1px was visible -- not enough to extend past the edge flip 1x1 box -- so now mouse in events get handled properly
SVN revision: 73350
2012-07-05 14:04:51 +00:00
Mike Blumenkrantz 7a595cee34 merged amazingly old patches from ticket #43 by morlenxus
Brian Miculcy 2007-08-01 15:47:34


SVN revision: 73239
2012-07-03 13:53:44 +00:00
Mike Blumenkrantz 6fbd413374 add event for when a shelf gets added
SVN revision: 73225
2012-07-03 11:55:00 +00:00
Mike Blumenkrantz 37461278bc add e_shelf_zone_dummy_new(), e_shelf_list_all(), and e_gadcon_dummy_new() to allow for creating an object (such as a task bar) which simulates a shelf for the purpose of removing its geometry from _e_zone_useful_geometry_calc(), thus preventing windows from being placed under it
ticket #643


SVN revision: 72999
2012-06-28 10:59:19 +00:00
Chidambar Zinnoury f9e2aba1d4 e dialogs: some more Yes → action label updates.
SVN revision: 72903
2012-06-26 23:23:11 +00:00
Mike Blumenkrantz 1e5628a2a3 redo shelf cfg list when shelf is deleted using its own menu
SVN revision: 72874
2012-06-26 11:32:02 +00:00
Mike Blumenkrantz 51a2457da7 also FIXME-- from the last commit
SVN revision: 72805
2012-06-25 12:11:30 +00:00
Mike Blumenkrantz e1acc237ed fix some remaining shelf autohide bugs related to shelves drawn on the container
SVN revision: 72804
2012-06-25 12:10:31 +00:00
Mike Blumenkrantz 712db1eb5a simpler fix for systray/shelf hiding, also unbreaks autohide in cases which the previous commit just broke
SVN revision: 72784
2012-06-25 07:57:00 +00:00
Mike Blumenkrantz 80d70ec5dd fix shelf autohide when mouse moves out of systray from a systrayed icon's menu
SVN revision: 72783
2012-06-25 07:50:08 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Mike Blumenkrantz 9af24491cf formatting
SVN revision: 72537
2012-06-20 09:58:28 +00:00
Carsten Haitzler c2288e4dcf dont re-order screens magically on dynamic screen ad/del vs startup on
the same screen setup.



SVN revision: 70498
2012-04-26 08:31:03 +00:00
Carsten Haitzler 55b8337d6e and fix up some more zone id/num disagreements.
SVN revision: 67988
2012-02-15 15:33:54 +00:00
Carsten Haitzler 4a76470496 taskbar++!
one more todo item being knocked off. but there.
also no proper icon for it yet. mostly code from the old taskbar with
lots of little things fixed.



SVN revision: 64518
2011-10-30 07:36:54 +00:00
Hannes Janetzek 63219f9c84 e17: free gadcon location
SVN revision: 63027
2011-08-31 12:52:28 +00:00
Hannes Janetzek 2f7c3e40e6 e17/shelf: dont show shelf menu in extra submenu when clicking on the shelf
SVN revision: 58572
2011-04-11 21:43:49 +00:00
Hannes Janetzek 036d995401 e17: use non-translateable string for gadcon client shelf menu item. as before.
SVN revision: 58006
2011-03-23 00:18:15 +00:00
Hannes Janetzek 7f457f1911 e17: add option to have gadcon client settings menu in toplevel again.
added e_menu_item_new_relative(E_Menu, E_Menu_Item *rel) which appends 
 new item to rel or prepends it when rel is NULL.

changed e_gadcon_util_client_menu_append to to take only the gadget menu
 and returns the new toplevel menu that should be shown by gcc
 depending on the setting this is a new menu with gadget menu as submenu
 or the gadet_menu with gadget menu items appended

updated e-modules-extra comes in a minute


SVN revision: 57826
2011-03-17 17:08:36 +00:00
Eric Schuele 09b181a9d5 Make sure auto-hidden shelves only unhide when you mouse in while on a desktop the shelf is actually present on
SVN revision: 57441
2011-03-01 04:48:48 +00:00
Carsten Haitzler f09e917e18 fix case where we could have x fatal stuff happen during shutdown or
we try use x on shutdown when x io fatal conditions have happened.
x_fatal flag around for that now too. tested. seems to now be happy
and not cause aborts on shutdown when x has gone.



SVN revision: 57075
2011-02-16 05:20:13 +00:00
Gustavo Sverzut Barbieri 6f2213cb25 convert init/shutdown to EINTERN, move some to _update().
Do not abuse the concept of e_*_init(), make them call-once and those
that needed multiple call are renamed to e_*_update(). To make sure
convert them to EINTERN so the symbols are not exported.

Actually I guess too much is exported as EAPI while they should be
EINTERN, but that would require manual investigation, while this patch
was basically created with sed + grep.



SVN revision: 54795
2010-11-22 15:21:32 +00:00
Miculcy Brian 748d4e182f Show a better name for shelfs, shelfs are now named as "Shelf bottom", "Shelf bottom_left", etc. I guess _E_Shelf->const char *name can be removed now... Anyone against that? :)
SVN revision: 51929
2010-09-06 17:38:18 +00:00
Miculcy Brian 6f7ca81277 easier shelf menu
SVN revision: 51867
2010-09-03 18:41:23 +00:00
Christopher Michael 26d1480832 Add unused.
Use PATH_MAX.



SVN revision: 51339
2010-08-18 20:28:37 +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
Carsten Haitzler e89dbf0415 fix shelf add to add to right zone.
SVN revision: 50795
2010-08-04 01:25:57 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Carsten Haitzler 1fbaf30e95 add names to popups
SVN revision: 48888
2010-05-15 12:25:33 +00:00
Hannes Janetzek 9ffab8f5e6 fix last commit. those shouldnt have slipped in..
SVN revision: 48192
2010-04-20 23:42:57 +00:00
Hannes Janetzek 26127d523f removing exebuf, left exebuf_terminal_cmd as it's used in other places
SVN revision: 48191
2010-04-20 23:25:42 +00:00
Sebastian Dransfeld 306d3dee1f Fix shelf numbering
id must be unique. So if we have 2 zones with 1 shelf in each, hide 1
zone and add a new shelf, it must get id "hidden shelf" + 1

SVN revision: 45563
2010-01-25 19:37:13 +00:00
Sebastian Dransfeld 511f4dd3c1 cleanup
SVN revision: 45547
2010-01-25 09:37:30 +00:00
Sebastian Dransfeld d529af17ba cleanup
SVN revision: 45546
2010-01-25 09:31:07 +00:00
Sebastian Dransfeld ca335a9fc2 Fix #483 again
SVN revision: 45531
2010-01-24 21:20:32 +00:00
Sebastian Dransfeld 2de0425541 Fix #483
For corner shelves, detect movement in corner windows
Use ev->root.{x,y} as event coordinates, we do not care where the mouse
moves within the edge windows.
Convenience function for window -> edge detection.

SVN revision: 45498
2010-01-23 20:06:02 +00:00
Sebastian Dransfeld caff9d5ade cleanup
SVN revision: 45381
2010-01-21 08:31:44 +00:00
Sebastian Dransfeld 5b22c194a8 Create/ delete edge bindings for shelves as needed
Fixes bug #483

SVN revision: 45371
2010-01-20 22:36:45 +00:00
Sebastian Dransfeld bda24a1f0d Make clang happy
SVN revision: 44230
2009-12-06 19:42:41 +00:00
Christopher Michael fc8c5cac0d Add illume-indicator module to configure.ac
Some formatting in e_gadcon/e_shelf.



SVN revision: 43966
2009-11-25 01:02:11 +00:00
Christopher Michael 09edadd2a5 Use MENU_POP_DIRECTION_AUTO instead of DIRECTION_DOWN.
SVN revision: 43960
2009-11-24 21:17:18 +00:00
Christopher Michael ad4fcc5a6a Formatting. Remove unused variables.
SVN revision: 43956
2009-11-24 19:19:21 +00:00
Christopher Michael 981617d697 Formatting.
SVN revision: 43955
2009-11-24 19:08:41 +00:00
Viktor Kojouharov b6ec16d97e hide edge event windows that are not used by any action
put the edge windows on the correct layers
allow edge click bindings
use actions for auto-hide shelves
toggling auto-hide will cause edge event windows to show/hide if necessary


SVN revision: 42864
2009-10-02 20:53:05 +00:00
Hannes Janetzek 74c9efaa78 fix warnings
SVN revision: 42606
2009-09-21 20:19:14 +00:00
Hannes Janetzek bdec662049 identify shelf and menu windows as such for compositing managers
SVN revision: 42299
2009-09-06 20:04:20 +00:00
victor 324e84908c From: victor <victor.scorpion@gmail.com>
Hi guys.

Here is my solution for #113 ticket request. This allows to transfer a
gadget to different locations. In short,

- any module can register arbitrary number of locations by invoking
e_gadcon_location_register().
- module is responsible to provide 2 functions, one for removing
particular gadget and one to add particular gadget class.
- module responsible to equip its gadcon(s) with reference to registered
location. If a gadcon contains non-NULL location reference, each gadget
contained by this gadcon can have submenu on its context menu. Template
function for constructing such submenu is provided
e_gadcon_client_add_location_menu. Gadgets can be moved from and to this
location by invoking menu items. Gadcons with NULL location reference
can accept transferred gadgets by module logic but can't send contained
gadgets to another module.
- module responsible to unregister location when gadcon is no more
available.
- menu items for context submenu is sorted by E_GADCON_SITE_XXX assigned
to that. Module can assign and change an icon for context menu item
corresponding to its location(s).
- Currently only shelves and gadman (desktop) used in gadget transfer
operations. I believe it is no trouble to ivolve any other
gadcon-capable module into the process. If you want to have that, please
just let me know.

Here the patch in attachmet. It even works, at least sometimes and at
least for me. Hope you'll find it useful.



SVN revision: 42121
2009-08-31 11:23:03 +00:00
Cedric BAIL f8c05999e4 * e: Cleanup use of Eina data structure.
Patch from Peter van de Werken <pwerken-e@a-eskwadraat.nl>.


SVN revision: 41916
2009-08-21 15:08:49 +00:00
victor 80c339d9b0 From: victor <victor.scorpion@gmail.com>
shelf resize patch.  tnx!



SVN revision: 41789
2009-08-15 11:54:35 +00:00
Christopher Michael d07e0e19a3 Revert Victor's Shelf content placement patch as some people are
experiencing problems with it...strange, worked here, but eh ;)



SVN revision: 41672
2009-08-10 18:34:07 +00:00
Christopher Michael 7dc51a07c9 Victor's <victor.scorpion@gmail.com> patch for
'Shelf content placement on screen resize fix'.

Tested here, no adverse effects.



SVN revision: 41637
2009-08-08 01:39:30 +00:00
Christopher Michael 022e23f4cb Formatting & Whitespace removal
SVN revision: 40417
2009-04-27 15:42:43 +00:00
Gustavo Sverzut Barbieri be6a6ba639 improvements to e_border positioning.
* e_border_center() will center window in a better way, accounting
   the shelves/panels instead of just centering on the screen. This is
   better and most noticeable if screens are small and a big shelf on
   just one edge.

 * e_border_move_without_border(), e_border_resize_without_border()
   and e_border_move_resize_without_border() will assume the given
   values do not acount border/decorations (client_inset) and will do
   automatically. As stated in documentation, this is specially useful
   when it is a new client and thus have no decorations when it is
   positioned, when decorations are added window would be placed at
   wrong position. One can try this by adding efwin window overflowing
   the bottom-right corner, closing it and when reopen fileman would
   try to make it inside the screen, this would not work well with
   part of the window still being outside.

 * e_win_move(), e_win_resize() and e_win_move_resize() will now use
   new e_border functions.



SVN revision: 40307
2009-04-23 02:24:59 +00:00
Gustavo Sverzut Barbieri 6c7e4540e2 shelf ignore mouse_out when going to children windows.
this solves an annoyance with systray: the bounce-on-mouse-over (mouse
over systray would make shelf hide, but after the animation starts the
shelf get mouse-in again and abort the hide, then starts again). But
it will introduce another annoyance: if systray open a menu and you
navigate to it, shelf will not get mouse-out event and thus will not
autohide.

I'm leaving this behavior as it is less annoying. I discussed a bit
with rasterman and solving this is not easy, we'd need to poll for
mouse position and query window tree, this would waste cpu and keep
timeout rate high, draining battery.



SVN revision: 40128
2009-04-17 04:56:54 +00:00
Gustavo Sverzut Barbieri b94960c645 fix shelf autohide on zone geometry changes.
when xrandr/xinerama changes zone (screen/output) geometry, the shelf
needs to update its hide_origin and also do hide animation if it was
hidden already.



SVN revision: 40126
2009-04-17 02:54:56 +00:00
Viktor Kojouharov 9a303630ae shorten some strings
SVN revision: 39886
2009-04-06 21:22:12 +00:00
Viktor Kojouharov 30b11d23c8 add a urgent show function on the gadcon level and use that
(p.s. it's a good idea to recompile any extra module that you might use)


SVN revision: 39686
2009-03-24 16:08:37 +00:00
Viktor Kojouharov fb323cef74 temporarily show the shelf on urgent windows (ibox)
SVN revision: 39649
2009-03-23 12:14:31 +00:00
Davide Andreoli eb2d1db1dc Icon rename finished. Now we have a fully compliant icon theme :)
now I'm going to fix E-MODULE-EXTRA...


SVN revision: 39495
2009-03-15 17:41:46 +00:00
Davide Andreoli 3d41cbb20d More icon works, this commit include changes to the icons on the desktop.
You will probably loose desktop icons until you get a fresh profile. Or you can edit the
.desktop files in .e/e/fileman/favorites (new icons name are: user-desktop, user-home, computer and user-temp)

Sorry for bothering... the next commit should be the last ;)



SVN revision: 39419
2009-03-08 23:09:48 +00:00
Davide Andreoli 49fecd25b7 More icons renamed
SVN revision: 39400
2009-03-06 22:18:15 +00:00