diff options
author | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2011-04-21 17:59:59 -0300 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2011-04-21 17:59:59 -0300 |
commit | 9055746ecea1c12e867f0366083dd33f33592d82 (patch) | |
tree | 8ef52fb3f31f36cc70ce8e90c695b66713fec213 /gladeui | |
parent | 5f56112209ddc261ec8e92b8b6c24f0fda3e20d9 (diff) |
Fixed bug while grabbing resize grip
Diffstat (limited to 'gladeui')
-rw-r--r-- | gladeui/glade-design-layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gladeui/glade-design-layout.c b/gladeui/glade-design-layout.c index 4326e5fb..58e4bf16 100644 --- a/gladeui/glade-design-layout.c +++ b/gladeui/glade-design-layout.c @@ -269,8 +269,8 @@ glade_design_layout_button_press_event (GtkWidget *widget, GdkEventButton *ev) GladeWidget *gchild; gtk_widget_get_allocation (child, &child_allocation); - priv->dx = x - (child_allocation.x + child_allocation.width); - priv->dy = y - (child_allocation.y + child_allocation.height); + priv->dx = x - (child_allocation.x + child_allocation.width + priv->child_offset); + priv->dy = y - (child_allocation.y + child_allocation.height + priv->child_offset); priv->activity = gdl_get_activity_from_pointer (GLADE_DESIGN_LAYOUT (widget), x, y); gdk_window_set_cursor (priv->window, priv->cursors[priv->activity]); |