diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rwxr-xr-x | lib/egg/egg-editable-toolbar.c | 9 |
2 files changed, 11 insertions, 4 deletions
@@ -1,3 +1,9 @@ +2003-10-26 Marco Pesenti Gritti <marco@gnome.org> + + * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): + + Resync api + 2003-10-25 Christian Persch <chpe@cvs.gnome.org> * data/default-prefs.js: diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c index 20877baa0..ec1b1ede9 100755 --- a/lib/egg/egg-editable-toolbar.c +++ b/lib/egg/egg-editable-toolbar.c @@ -541,7 +541,8 @@ toolbar_drag_motion_cb (GtkWidget *widget, EggEditableToolbar *etoolbar) { GdkAtom target; - GtkRequisition req; + int index; + GtkToolItem *item; target = gtk_drag_dest_find_target (widget, context, NULL); if (target == GDK_NONE) @@ -554,9 +555,9 @@ toolbar_drag_motion_cb (GtkWidget *widget, gtk_drag_get_data (widget, context, target, time); } - gtk_widget_size_request (etoolbar->priv->dragged_item, &req); - gtk_toolbar_highlight_drop_location (GTK_TOOLBAR (widget), x, y, - req.width, req.height); + index = gtk_toolbar_get_drop_index (GTK_TOOLBAR (widget), x, y); + item = GTK_TOOL_ITEM (etoolbar->priv->dragged_item); + gtk_toolbar_highlight_drop_location (GTK_TOOLBAR (widget), index, item); return TRUE; } |