Commit Graph

97 Commits

Author SHA1 Message Date
Sebastian Dransfeld 1923026bb8 Disable gadcon locking for gadcon client menu for now. Need to find the
right solution.


SVN revision: 32934
2007-12-02 16:01:02 +00:00
Christopher Michael c7bbdb6b68 Make sure that the gcc->menu is set.
SVN revision: 32879
2007-11-25 08:27:13 +00:00
Christopher Michael f815a503eb More thorough check on menu_post for shelf.
SVN revision: 32874
2007-11-25 05:36:54 +00:00
Christopher Michael 0509cb1a44 More gadcon->shelf checks before calling any shelf-specific functions.
SVN revision: 32868
2007-11-25 04:15:50 +00:00
Christopher Michael 0f0a57d127 More shelf-specific checks before calling shelf-specific functions.
SVN revision: 32864
2007-11-25 03:25:26 +00:00
Christopher Michael 326b96eb5f *sigh* Gadget containers can be other things besides Shelfs. Check for
existance of shelf before calling shelf-specific functions.


SVN revision: 32863
2007-11-25 03:18:31 +00:00
Christopher Michael e24160a744 Only call shelf_lock_set if the gadcon is part of a shelf & gadcon->shelf
exists. . This fixes segfaults with trying to edit/move items in the toolbar.


SVN revision: 32845
2007-11-23 11:49:27 +00:00
Sebastian Dransfeld 2124f06c27 lock shelf on gadcon edit and menu
SVN revision: 32841
2007-11-23 09:38:30 +00:00
Sebastian Dransfeld 4ca1a61c07 Declare and put static methods where they belong.
SVN revision: 32840
2007-11-23 09:32:02 +00:00
Christopher Michael 36c6082b05 Fix toolbar layer.
Modify e_gadcon so that the "Stop resizing this item" menu appears for
toolbar. No need to get w & h from the canvas to pop the menu, only need x & y.


SVN revision: 32730
2007-11-16 03:07:55 +00:00
Christopher Michael cef1e53756 Efm modules don't support Plain/Inset, so no need for the menu entry there.
SVN revision: 32593
2007-11-12 01:59:50 +00:00
Christopher Michael a6b5ad55bd Keep Begin/Stop of move/resize gadgets in sync.
This fixes a bugger where the shelf menu & gadcon client menu were not
updating properly when editing, ie: the shelf menu would still read Stop
Editing even tho no other gcc's where in edit mode.


SVN revision: 32579
2007-11-11 17:44:29 +00:00
Christopher Michael bf03226559 Add some trapping to gadcon for doing drags. This is needed because toolbar
gadcon does not have zone->container.


SVN revision: 32522
2007-11-09 20:34:55 +00:00
Christopher Michael 9a4d68f63a Initial check-in of upcoming toolbar. Ignore this code for now as it's still
a work in progress (ie: do not use right now).


SVN revision: 32229
2007-10-31 10:09:51 +00:00
Carsten Haitzler 43a5794c88 buttom patch from lok and seb's shelf bug fix.
SVN revision: 31974
2007-10-05 06:05:16 +00:00
Sebastian Dransfeld a9948c5272 Better check if a gadcon supports new features.
SVN revision: 31729
2007-09-16 00:24:42 +00:00
Sebastian Dransfeld ac35054634 We need id's for gadgets which are independent of shelves, so if we move
a gadget from one shelf to another it will keep the same config. Since the
id is mainly for the module to find the appropriate config for a gadget,
the module is now responsible for creating id's for gadgets config. One
problem is that we no longer can trust the id of a gadget, so we need to
store a reference between a gadget and its config after startup. No big
deal.


SVN revision: 31727
2007-09-16 00:02:53 +00:00
Christopher Michael f4725035d1 Check that we actually have gadcon_layout_data before trying to access it.
This fixes bug #196.


SVN revision: 31674
2007-09-10 20:07:14 +00:00
Carsten Haitzler a960cd070b move a chunk of stuff to use evas_smart_class_new() - evas_smart_new() will
probably die as it's already got legacy funcion methods for layer etc. stuff.


SVN revision: 31161
2007-08-04 13:12:43 +00:00
Sebastian Dransfeld 80b32e7c7b Show shelves on dnd enter.
SVN revision: 29915
2007-05-07 19:54:12 +00:00
Sebastian Dransfeld f6dc1dc1cc Remove stale code.
Fix comments.


SVN revision: 29159
2007-03-25 22:45:00 +00:00
Sebastian Dransfeld a286d71061 Remove stale code.
SVN revision: 29158
2007-03-25 22:20:45 +00:00
Viktor Kojouharov aaebfe05c2 a new function to return the correct geometry and position of the gcc regardless of the shelf layer
SVN revision: 28548
2007-03-03 22:42:37 +00:00
Sebastian Dransfeld 231a5fc1a3 Should be prepend.
SVN revision: 27850
2007-01-07 21:06:03 +00:00
Sebastian Dransfeld 322d9adcf3 DND for gadcon clients.
SVN revision: 27847
2007-01-07 16:32:57 +00:00
Sebastian Dransfeld c51bb204f7 If a config does not exist for a gadcon client on save, create it.
SVN revision: 27764
2007-01-03 17:33:40 +00:00
Sebastian Dransfeld 077df81327 dnd gadcon clients. Order for shrinked shelves does not work right.
SVN revision: 27759
2007-01-03 16:41:07 +00:00
Sebastian Dransfeld fb6c00b64d Rename callbacks for gadcon client.
Add callback for move/resize of the gadcon.


SVN revision: 27754
2007-01-03 06:30:43 +00:00
Sebastian Dransfeld c299f6aa14 Add a convert callback so that a drag can have several types.
Make it possible to drag pager windows to the ibar.


SVN revision: 27751
2007-01-03 06:14:04 +00:00
rephorm aac131f834 delete gc->clients->data from _before_ the removal
SVN revision: 27715
2007-01-02 03:25:01 +00:00
Sebastian Dransfeld f3882bd459 Set the requested gadcon client pos equal to the drop pos.
SVN revision: 27713
2007-01-01 21:44:23 +00:00
Sebastian Dransfeld 6af75194eb Use drag resist config value.
Remove gadcon client from gadcon when unpopulating. If someone else has a
ref on a gadcon client this loop will run for ever.


SVN revision: 27712
2007-01-01 21:27:35 +00:00
Sebastian Dransfeld a948c87538 Conditional resize.
SVN revision: 27704
2006-12-31 15:18:27 +00:00
Sebastian Dransfeld 2844b9d77c Disable drop handler.
SVN revision: 27701
2006-12-31 14:18:15 +00:00
Sebastian Dransfeld 6381bd0d4d Larger drag resist.
SVN revision: 27700
2006-12-31 14:07:01 +00:00
Sebastian Dransfeld 26ccc7a2a4 No need to continue looping after the id is rejected.
SVN revision: 27695
2006-12-31 12:23:16 +00:00
Sebastian Dransfeld abb527f7e5 Better check for unique id.
SVN revision: 27693
2006-12-31 10:07:12 +00:00
Sebastian Dransfeld cba29bd250 Revert to old e_gadcon_client_new, some modules require id to be set on
the gadcon client after this func returns.


SVN revision: 27684
2006-12-30 23:32:25 +00:00
Sebastian Dransfeld e2ad139030 Clean gadgets because of current changes.
It is possible to drop gadcon clients on shelves.


SVN revision: 27679
2006-12-30 22:31:28 +00:00
Sebastian Dransfeld ff30cfcfe3 Functions to create new config and del config.
SVN revision: 27676
2006-12-30 21:00:19 +00:00
Sebastian Dransfeld 3f41c2b290 Drag gadcons off the shelf in edit mode to remove them.
SVN revision: 27675
2006-12-30 18:12:53 +00:00
Sebastian Dransfeld 805315670b Clean up some gadcon config code.
Make id unique for each gadcon.


SVN revision: 27673
2006-12-30 17:54:27 +00:00
Sebastian Dransfeld db5451759f Disable drag.
SVN revision: 27646
2006-12-29 16:58:56 +00:00
Sebastian Dransfeld 439b87ffa6 Start of drag code for gadcon.
SVN revision: 27645
2006-12-29 16:54:21 +00:00
Christopher Michael 8954bb145b Some formatting love for the ohh so friendly e_gadcon :)
Icons in the shelf menu for Config Contents and Shelf Config.


SVN revision: 27534
2006-12-20 22:40:01 +00:00
Christopher Michael 71434d0911 Fix IBar/IBox "resize to single icon" bug.
Good eye Metrics :)


SVN revision: 27274
2006-11-29 11:24:54 +00:00
metrics 7f9999dbf8 More fixes of the autoscroll/drag and drop behaviour for gadgets in
shelves. Added callback to allow the current drop position to be
dynamically updated as the gadget scrolling is animated.


SVN revision: 27114
2006-11-15 06:24:30 +00:00
metrics 5cc25e147a Start of fix for drag and drop to autoscrolling ibar/ibox.
SVN revision: 27068
2006-11-12 11:32:44 +00:00
Carsten Haitzler 5409f4f0cd fix dnd for "below everything"
SVN revision: 26653
2006-10-16 10:40:10 +00:00
sebastid 37d0006594 paranthesis are nice.
SVN revision: 26005
2006-09-21 20:05:44 +00:00