diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2003-10-29 01:58:38 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2003-10-29 01:58:38 +0000 |
commit | f36e68a1e80b00e780daba46b1196ed7a804d1e0 (patch) | |
tree | 6d61d8359a62c51c5d3fea1e35402e840d504a1f /tests/testtoolbar.c | |
parent | 077eee4dfb25eda4db6de0f691db6a7085f9b5c2 (diff) | |
download | gtk+-f36e68a1e80b00e780daba46b1196ed7a804d1e0.tar.gz |
Add this function; remove gtk_toolbar_highlight_drop_location() and
Wed Oct 29 02:54:35 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
function; remove gtk_toolbar_highlight_drop_location() and
gtk_toolbar_unhighlight_drop_location().
Also fix bug where the number of overflowed items were miscounted.
Diffstat (limited to 'tests/testtoolbar.c')
-rw-r--r-- | tests/testtoolbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c index d56c77677c..04ec128a6f 100644 --- a/tests/testtoolbar.c +++ b/tests/testtoolbar.c @@ -450,12 +450,12 @@ toolbar_drag_motion (GtkToolbar *toolbar, drag_item = gtk_tool_button_new (NULL, "A quite long button"); gtk_object_sink (GTK_OBJECT (g_object_ref (drag_item))); } - + gdk_drag_status (context, GDK_ACTION_MOVE, time); index = gtk_toolbar_get_drop_index (toolbar, x, y); - gtk_toolbar_highlight_drop_location (toolbar, index, drag_item); + gtk_toolbar_set_drop_highlight_item (toolbar, drag_item, index); return TRUE; } @@ -472,7 +472,7 @@ toolbar_drag_leave (GtkToolbar *toolbar, drag_item = NULL; } - gtk_toolbar_unhighlight_drop_location (toolbar); + gtk_toolbar_set_drop_highlight_item (toolbar, NULL, 0); } gint |