[glade] Fixed bug while grabbing resize grip



commit 9055746ecea1c12e867f0366083dd33f33592d82
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Thu Apr 21 17:59:59 2011 -0300

    Fixed bug while grabbing resize grip

 ChangeLog                     |    5 +++++
 gladeui/glade-design-layout.c |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bff122d..d65cf90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-21  Juan Pablo Ugarte <juanpablougarte gmail com>
+
+	* gladeui/glade-design-layout.c: fixed bug while grabbing resize grip
+	  (Child offset was missing from dx and dy)
+
 2011-04-13  Juan Pablo Ugarte <juanpablougarte gmail com>
 
 	* gladeui/glade-design-view.c:
diff --git a/gladeui/glade-design-layout.c b/gladeui/glade-design-layout.c
index 4326e5f..58e4bf1 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]);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]