]> Pileus Git - ~andy/gtk/commit
Add support for OS X like sliding of toolbar items during drag and drop,
authorSoeren Sandmann <sandmann@daimi.au.dk>
Mon, 20 Oct 2003 18:56:05 +0000 (18:56 +0000)
committerSøren Sandmann Pedersen <ssp@src.gnome.org>
Mon, 20 Oct 2003 18:56:05 +0000 (18:56 +0000)
commit7c659465e2f01209d398d54524a6ad71f6495a09
tree23dc222be8707a34b9cde73f5e420272728205f4
parentc7353d84eefc443adf1c0651c91f868773708e51
Add support for OS X like sliding of toolbar items during drag and drop,

Mon Oct 20 20:27:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

Add support for OS X like sliding of toolbar items during drag and
drop, (#110919, Dave Bordoley)

Make dnd highlighting the responsibility of the
application. (Fixes #116298, Owen Taylor)

* gtk/gtktoolbar.h: Add prototypes for new API.

* gtk/gtktoolbar.c
(physical_to_logical, logical_to_physical): new functions
converting between "position including placeholders" and "position
excluding placeholders".
(gtk_toolbar_class_init): remove drag_leave and drag_motion
handlers
(struct _ToolbarContent): new struct containing information
related to toolbar items.
(gtk_toolbar_highlight_drop_location): new public function
(gtk_toolbar_unhighlight_drop_location): new public function

* tests/testtoolbar.c
(toolbar_drag_motion, toolbar_drag_leave): new functions
(main): connect to dnd signals.  Make the "New" item expand to
make drag and drop more exciting.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktoolbar.c
gtk/gtktoolbar.h
tests/testtoolbar.c