Obvious copy-paste bug in libhildon-nonmaemo-gtk3 revision 2001 hildon-pannable-area.c
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cordia HD |
New
|
Undecided
|
Unassigned |
Bug Description
These are the relevent hunks from revision 2001:
@@ -1911,7 +1780,9 @@
GList *c, *children;
GdkWindow *selected_window = NULL;
- gdk_drawable_
+ width = gdk_window_
+ height = gdk_window_
+
if ((x < 0) || (x >= width) || (y < 0) || (y >= height))
return NULL;
@@ -1929,7 +1800,8 @@
GdkWindow *child = (GdkWindow *) c->data;
gint wx, wy;
- gdk_drawable_
+ width = gdk_window_
+ height = gdk_window_
gdk_
if ((x >= wx) && (x < (wx + width)) && (y >= wy) && (y < (wy + height)) &&
The second one is a copy-paste of the fist one, only it should have been referencing "child."
Fix merged and pushed to https:/ /github. com/Cordia/ libhildon
Thank you for your patch.