Commit Graph

232 Commits

Author SHA1 Message Date
Mike Blumenkrantz 71f57bb52d gadcon location gadget_add callbacks now have a gadcon client param so the config can be retrieved since these callbacks are (currently) only used for changing locations of gadgets
also the related gcc param in gadget_del can now have a NULL config to signify that the gadget has been moved to a new gadcon

this means that moving a gadget to a new location will no longer cause it to lose its gadget config

ticket #1594


SVN revision: 77521
2012-10-05 09:57:34 +00:00
Mike Blumenkrantz 46702481d6 simplify worst case shelf visibility check
SVN revision: 77503
2012-10-05 06:44:53 +00:00
Mike Blumenkrantz 832be52b04 check for shelf visibility on init before showing
ticket #1595


SVN revision: 77502
2012-10-05 06:43:44 +00:00
Mike Blumenkrantz b0df4fc70f move shelf visible detection code from e_desk to e_shelf
SVN revision: 77416
2012-10-04 09:53:52 +00:00
Sebastian Dransfeld 436323bf59 e: cleanup layer handling
It seems people put random numbers as layers, so it is better to define
available layer numbers.

This patch also puts popups below fullscreen windows, as it sucks to get
popups during presentations. A better solution is maybe to put popups
above fullscreen, but have a presentation mode to put fullscreen windows
above popups?

SVN revision: 77293
2012-10-02 08:54:35 +00:00
Mike Blumenkrantz eace74147d add timers to shelves which still haven't shown at module_init_end to show after 1s
SVN revision: 76953
2012-09-21 09:39:26 +00:00
Mike Blumenkrantz da42dfa979 add shelf menu option to refresh shelf contents
SVN revision: 76936
2012-09-21 07:45:39 +00:00
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