aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-26 08:35:37 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-26 08:35:37 +0800
commit5ec856546bb5bcca5f3edf038c5bc7b4af5df5ea (patch)
treeab54b3a5ba9b4a933df67452a95ce87553b8a9ba /lib
parent83ddf1c6ee374a54f26a09f5bdde799607ed6524 (diff)
downloadgsoc2013-epiphany-5ec856546bb5bcca5f3edf038c5bc7b4af5df5ea.tar
gsoc2013-epiphany-5ec856546bb5bcca5f3edf038c5bc7b4af5df5ea.tar.gz
gsoc2013-epiphany-5ec856546bb5bcca5f3edf038c5bc7b4af5df5ea.tar.bz2
gsoc2013-epiphany-5ec856546bb5bcca5f3edf038c5bc7b4af5df5ea.tar.lz
gsoc2013-epiphany-5ec856546bb5bcca5f3edf038c5bc7b4af5df5ea.tar.xz
gsoc2013-epiphany-5ec856546bb5bcca5f3edf038c5bc7b4af5df5ea.tar.zst
gsoc2013-epiphany-5ec856546bb5bcca5f3edf038c5bc7b4af5df5ea.zip
Resync api
2003-10-26 Marco Pesenti Gritti <marco@gnome.org> * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): Resync api
Diffstat (limited to 'lib')
-rwxr-xr-xlib/egg/egg-editable-toolbar.c9
1 files changed, 5 insertions, 4 deletions
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;
}