Commit Graph

63 Commits

Author SHA1 Message Date
Mike Blumenkrantz 689a78533c return immediately when setting a null gadget style if current style is null 2017-07-28 16:21:32 -04:00
Mike Blumenkrantz a35844724e abort gadget site layouts if the gadget site has not been sized
this triggers infinite loops, and a resize on the site will trigger a layout
automatically
2017-07-28 16:21:32 -04:00
Mike Blumenkrantz 30be540c8a apply gadget aspects with greater precision
aspect ratio is not an integer, rounding it prematurely loses precision
2017-07-28 16:21:32 -04:00
Mike Blumenkrantz 3f915ae6a8 prune unconfigured gadgets from comp object sites upon site del
automatically created sites shouldn't trigger wizards upon show
2017-07-28 16:06:03 -04:00
Mike Blumenkrantz 7e46b933ea move gadget del callbacks to AFTER priority
ensure gadget internals have longer lifetime than external callbacks on
gadget objects

ref 27091c510c

fix T5601, T5693
2017-07-28 16:05:07 -04:00
Mike Blumenkrantz 0281f617ff unset gadget site's layout pointer after destroying gadgets
ensure this persists through gadget del callbacks

ref T5693
2017-07-28 15:58:32 -04:00
Mike Blumenkrantz 79080cea2d use safe list iterating when clearing a gadget site during shutdown
demo gadgets are immediately removed when deleted, leading to list
corruption unless a safe iterator is used
2017-06-30 15:24:13 -04:00
Mike Blumenkrantz 5642ed47e8 update gadget position during a resize from top/left edge 2017-06-30 15:23:23 -04:00
Mike Blumenkrantz d3e4caa57d if gadget wizard returns a zero id, remove gadget from site and destroy 2017-06-30 15:23:08 -04:00
Mike Blumenkrantz 1abdbe81b5 reset demo gadget id before deleting gadget object during drop operation
ensure that the gadget is marked as usable so that the config isn't deleted
2017-02-03 10:47:34 -05:00
Mike Blumenkrantz 1644a7ec0a ensure that gadget internal del callbacks are handled before other callbacks 2017-02-03 10:41:04 -05:00
Mike Blumenkrantz 5ab0d5be88 free configs for demo gadgets on object free
these are purely for demo purposes and should never be retained

I think this is right...
2017-02-03 10:40:05 -05:00
Stephen 'Okra' Houston 79342184b9 Enlightenment: Make gadget editor popup scrollable:
This fixes T5077
2017-02-03 10:38:58 -05:00
Mike Blumenkrantz 1e85ec4174 prevent divide by zero when calculating gadget aspect sizing 2016-11-28 10:59:48 -05:00
Mike Blumenkrantz ad1b8f224f force gadget site recalc from style object if gadget's hints change
ensure that these intermediate objects trigger recalcs as expected

fix T4809
2016-11-18 11:40:42 -05:00
Mike Blumenkrantz ef2112c7db feed mouse-up when dropping a gadget site before enabling events on the site
prevents unintentional activation of gadget actions during moves
2016-11-18 11:36:58 -05:00
Mike Blumenkrantz 1205dff03c attempt to recalc gadgets which overflow their container 2016-11-18 11:33:49 -05:00
Mike Blumenkrantz 8bd05d204c allow scaling gadgets using wheel events during initial placement 2016-11-18 11:33:37 -05:00
Mike Blumenkrantz be19203607 attempt to handle non-orient gadget resizes based on anchor corners 2016-11-18 11:33:31 -05:00
Mike Blumenkrantz 424c50077c center desktop gadget editor popups upon the zone they have activated 2016-11-18 11:33:18 -05:00
Mike Blumenkrantz 4bec06d4ac calc new gadget size based on ratio of size:target site size
no use case for this yet...
2016-11-18 11:28:39 -05:00
Mike Blumenkrantz 911555d932 copy gadget position from pointer gadget -> drop gadget when executing drop
fixes desync which would cause gadgets to move offscreen
2016-11-18 11:28:34 -05:00
Mike Blumenkrantz e258defd57 force gadget site recalc on gadget object creation to ensure sizing
fixes initial sizing for no-orient gadget sites
2016-11-18 11:28:31 -05:00
Mike Blumenkrantz 3af4bf4db2 handle no-orient gadget visibility based on site->events visibility 2016-11-18 11:28:22 -05:00
Mike Blumenkrantz 60fedb8613 add workarounds for ctxpopup geometry for use in input shape tiling
ref T4687
2016-11-18 11:28:08 -05:00
Mike Blumenkrantz 0dfc809b83 add gadget site sizing workaround to avoid elm box sizing desync
ref T4747

fix T4732
2016-11-18 11:25:40 -05:00
Mike Blumenkrantz 1dd82a4cc7 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-11-18 11:25:25 -05:00
Mike Blumenkrantz ef4cc47e11 handle gadget_popup smart callback on gadget's display object
fixes case where this signal was not accurately propagated

ref T4732
2016-11-18 11:24:24 -05:00
Mike Blumenkrantz 21c8af0c34 call gadget_popup smart callback when configuring gadgets
ensure visibility changes are received by containers

ref T4732
2016-11-18 11:24:10 -05:00
Mike Blumenkrantz efdeef7cc5 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-11-18 11:24:06 -05:00
Mike Blumenkrantz ef57cd1559 add EINTERN function for renaming gadget sites 2016-11-18 11:21:10 -05:00
Carsten Haitzler 8e16b5bcfc explicitly use eina list types passing into EINA_LIST_FREE() 2016-10-04 09:37:17 -04:00
Mike Blumenkrantz a2e870870d 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-04 09:37:17 -04:00
Mike Blumenkrantz ed3d1e70f2 force shape queue when gadget util ctxpopups change visibility
fixes some input region issues in x11
2016-10-04 09:37:16 -04:00
Mike Blumenkrantz a4a5b462f1 remove extraneous recalc trigger when deleting a gadget
CID 1362898
2016-10-04 09:37:15 -04:00
Mike Blumenkrantz 88f9f23ef1 always delete gadget's display object and ensure gadget object is null
fixes some object errors during container deletion
2016-10-04 09:37:15 -04:00
Mike Blumenkrantz 1f12bdf6b9 always use largest available size for free-oriented gadgets
ensure that gadgets don't unexpectedly clamp to minimum size
2016-10-04 09:37:15 -04:00
Mike Blumenkrantz 520927f7e0 add backspace/delete for clearing all lockscreen gadgets
this was turning into a total wasteland
2016-10-04 09:37:15 -04:00
Mike Blumenkrantz 552d0550d3 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-10-04 09:37:15 -04:00
Mike Blumenkrantz 33a396e74d 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-10-04 09:37:15 -04:00
Mike Blumenkrantz 5211b4637a attempt to retain gadget size when executing move operations 2016-10-04 09:37:15 -04:00
Mike Blumenkrantz 69afd70c82 force smart calc on gadget sites at key points during move operations
ensure that gadget info and visuals match up
2016-10-04 09:37:14 -04:00
Mike Blumenkrantz ef5ba9f35e add separate codepath for handling layout of moving gadgets
these get sized and positioned in a passthrough manner, so avoid doing any calc
2016-10-04 09:37:14 -04:00
Mike Blumenkrantz 30b07c6558 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-10-04 09:37:14 -04:00
Mike Blumenkrantz 9025732d39 do not attempt to populate gadgets during type_add if site has not yet been populated
mostly just fixes some ERRs on init
2016-10-04 09:37:14 -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