diff options
author | Benjamin Otte <otte@redhat.com> | 2018-07-31 20:58:10 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-07-31 22:34:27 +0200 |
commit | e06044530f4782508c915512d13e2b2a42d7d325 (patch) | |
tree | 1c63e719132b60776f1260631164ba15d280a70a | |
parent | 7ce7e5503f791c66ec174ced8c712dcbae50ff01 (diff) | |
download | gtk+-e06044530f4782508c915512d13e2b2a42d7d325.tar.gz |
widgetfocus: Fix copy/paste error
This lead to erratic focus behavior with <Tab> in hboxes, where the
smallest child got focus first instead of the leftmost child.
-rw-r--r-- | gtk/gtkwidgetfocus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkwidgetfocus.c b/gtk/gtkwidgetfocus.c index 098df4348b..ce5519c4c8 100644 --- a/gtk/gtkwidgetfocus.c +++ b/gtk/gtkwidgetfocus.c @@ -89,8 +89,8 @@ tab_sort_func (gconstpointer a, if (y1 == y2) { - const float x1 = child_bounds1.origin.y + (child_bounds1.size.width / 2.0f); - const float x2 = child_bounds2.origin.y + (child_bounds2.size.width / 2.0f); + const float x1 = child_bounds1.origin.x + (child_bounds1.size.width / 2.0f); + const float x2 = child_bounds2.origin.x + (child_bounds2.size.width / 2.0f); if (text_direction == GTK_TEXT_DIR_RTL) return (x1 < x2) ? 1 : ((x1 == x2) ? 0 : -1); |