Commit Graph

90 Commits

Author SHA1 Message Date
Mike Blumenkrantz e690d70512 set ON_HOLD flag more accurately when activating gadget actions
fixes handling of actions which have same binding as gadget site's container bindings
2016-10-19 11:13:32 -04:00
Mike Blumenkrantz 79b24ea884 handle gadget_popup smart callback on gadget's display object
fixes case where this signal was not accurately propagated

ref T4732
2016-10-17 11:57:05 -04:00
Mike Blumenkrantz d5847e8ca6 call gadget_popup smart callback when configuring gadgets
ensure visibility changes are received by containers

ref T4732
2016-10-17 11:56:32 -04:00
Mike Blumenkrantz d0e21c912a add gadget_site_(un)locked smart callbacks for forcing gadget site visibility
useful for cases where the gadget site has no popups to manage but visibility must
be maintained

ref T4732
2016-10-17 11:55:23 -04:00
Mike Blumenkrantz baa7e85e61 add EINTERN function for renaming gadget sites 2016-10-13 11:27:12 -04:00
Carsten Haitzler 1afddc3b5e explicitly use eina list types passing into EINA_LIST_FREE() 2016-10-03 11:55:55 +09:00
Mike Blumenkrantz 2642e8c95a clamp gadget util ctxpopups to E_LAYER_POPUP at the lowest
avoid having these be obscured by windows when the gadget is on a lower layer
2016-10-02 09:35:40 -04:00
Mike Blumenkrantz b47b3cd75f force shape queue when gadget util ctxpopups change visibility
fixes some input region issues in x11
2016-09-30 12:59:10 -04:00
Mike Blumenkrantz 0074c1ca27 remove extraneous recalc trigger when deleting a gadget
CID 1362898
2016-09-21 07:12:49 -04:00
Mike Blumenkrantz f700a57baf clean up gadget drop handlers correctly
use drop_handler_del when deleting gadget drop handlers, also delete spacer rects
2016-09-20 12:46:46 -04:00
Mike Blumenkrantz 17909e4fb5 always delete gadget's display object and ensure gadget object is null
fixes some object errors during container deletion
2016-09-20 11:20:22 -04:00
Mike Blumenkrantz d1953c2205 always use largest available size for free-oriented gadgets
ensure that gadgets don't unexpectedly clamp to minimum size
2016-09-19 15:50:55 -04:00
Mike Blumenkrantz 9439228816 add backspace/delete for clearing all lockscreen gadgets
this was turning into a total wasteland
2016-09-19 15:18:06 -04:00
Mike Blumenkrantz 682dd5f835 check visibility of gadget site 'events' member to determine drop availability
the layout object of a gadget site does not need to be visible since it may be
used for desktop gadgets or a transparent overlay
2016-09-19 15:04:47 -04:00
Mike Blumenkrantz b5701bdb1b adjust gadget drop coords for pointer offset
gadgets are centered on the pointer when moved, so the drop coord needs to
then be uncentered to avoid unintended movement
2016-09-19 14:55:53 -04:00
Mike Blumenkrantz d4450d8eb6 attempt to retain gadget size when executing move operations 2016-09-19 14:55:28 -04:00
Mike Blumenkrantz 8923415f8b force smart calc on gadget sites at key points during move operations
ensure that gadget info and visuals match up
2016-09-19 14:54:35 -04:00
Mike Blumenkrantz 4dd99ed669 add separate codepath for handling layout of moving gadgets
these get sized and positioned in a passthrough manner, so avoid doing any calc
2016-09-19 14:53:20 -04:00
Mike Blumenkrantz 42056009a5 set gadget added flag any time a gadget is created or wizarded
ensure that desktop gadget editor doesn't exit when attempting to add
subsequent gadgets
2016-09-19 14:32:20 -04:00
Mike Blumenkrantz ca7bc28286 set the spacer rect as the drop handler base when creating gadget drop handlers
this provides layering info to dnd internals
2016-09-15 14:48:28 -04:00
Mike Blumenkrantz 0a9b8889e0 do not attempt to populate gadgets during type_add if site has not yet been populated
mostly just fixes some ERRs on init
2016-09-08 10:29:22 -04:00
Mike Blumenkrantz 5da62d9adf add drop handlers for gadgets
a simple wrapper around existing e_dnd functionality
2016-09-06 11:12:31 -04:00
Mike Blumenkrantz 77602a5853 ensure string termination when using strncpy
CID 1352823
2016-03-10 11:11:57 -05:00
Mike Blumenkrantz 82a4dbda8d enforce accurate resizing/orienting when changing the location of a bryce 2016-03-08 12:31:10 -05:00
Mike Blumenkrantz c139796082 delete gadget display object during object deletion
fixes crashing when unloading modules with active gadgets
2016-03-04 17:29:15 -05:00
Mike Blumenkrantz d26c49b3ce add new gadget system
see e_gadget.h
2016-03-04 14:23:44 -05:00
rephorm b8ef0f8089 Nuke old unused gadget code.
SVN revision: 24781
2006-08-16 01:09:34 +00:00
Carsten Haitzler 3a2144cad0 nice little overhaul of module related stuff. moduels now finally RELY on
module.eap files being installed - and using the e_apps api to load them and
ask for a name. Also icon is expected to be in this file too and i have
removed the info func call from modules as well as config_menu, module menus,
and other cruft in moduel structs. this also means revving the module api
version and saving users from a "if i recompile it will work" thing. :)
moduels need serious updates, not just a recompile for this. your modules
WILL break.


SVN revision: 23045
2006-06-01 06:44:37 +00:00
e-taro 0e28ec541a - free the list elements as well as the list itself
- free the "change" too


SVN revision: 20753
2006-02-23 14:22:31 +00:00
Christopher Michael 8d97a8e0ce Typo, oops.
SVN revision: 20644
2006-02-20 19:30:58 +00:00
Christopher Michael 7a77773847 Nicer menus...shhh ! :)
SVN revision: 20643
2006-02-20 19:24:47 +00:00
rephorm 5f1f5d4d1e add Configuration item to face menu (if the module defines e_modapi_config)
SVN revision: 20038
2006-01-26 05:56:34 +00:00
rephorm eebec166ca Remove module menu from gadget code since it is no longer used.
Include face count to ease matching config data to a face.


SVN revision: 20036
2006-01-26 05:17:51 +00:00
rephorm fb883ef939 commit some Todo for e_gadget that i forgot to commit weeks ago
SVN revision: 19728
2006-01-12 01:18:16 +00:00
sebastid 6a638a7806 Fix EAPI warnings.
SVN revision: 19597
2006-01-07 10:39:46 +00:00
Christopher Michael 8f83193d0d Remove unused variables, Add E_GADMAN_CHANGE_EDGE & E_GADMAN_CHANGE_ZONE to e_gadget_face_cb_gmc_change; both to quiet compiler warnings.
SVN revision: 19366
2005-12-29 13:50:50 +00:00
rephorm c597c6585c Allow gadgets to either be 1 per container (default) or 1 per zone (like the pager).
SVN revision: 19120
2005-12-18 21:06:37 +00:00
rephorm e3ead0ca7a pass a single struct to e_gadget_new() instead of a ton of functions.
SVN revision: 19107
2005-12-18 07:37:53 +00:00
Carsten Haitzler d8c635f964 more stringshare work
SVN revision: 18816
2005-12-03 15:39:25 +00:00
rephorm e3a28bf9d0 E_Gadget
--------

a quick set of convenience functions for creating gadgets (desktop modules).
see gadget_test for an example. documentation still to come :)

i still need to comb over and make sure i didn't miss freeing anything...


SVN revision: 18742
2005-12-01 04:07:27 +00:00