[glade/glade-3-10] Fixed bug while grabbing resize grip
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-10] Fixed bug while grabbing resize grip
- Date: Thu, 21 Apr 2011 21:15:41 +0000 (UTC)
commit c9ced7175cdcbc9900d8c3c74d8353fee292b1f8
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 60ef5bf..ea73b9c 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-05 Tristan Van Berkom <tristanvb openismus com>
* configure.ac, NEWS: Rolling 3.10.0
diff --git a/gladeui/glade-design-layout.c b/gladeui/glade-design-layout.c
index 1108f42..34d9fdb 100644
--- a/gladeui/glade-design-layout.c
+++ b/gladeui/glade-design-layout.c
@@ -265,8 +265,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]