[gtk+] textview: Fix comparison being the wrong way
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] textview: Fix comparison being the wrong way
- Date: Fri, 23 Sep 2011 20:26:05 +0000 (UTC)
commit bd8e9085abe7b1874bba3b72c5074f427d0959b3
Author: Benjamin Otte <otte redhat com>
Date: Fri Sep 23 22:22:35 2011 +0200
textview: Fix comparison being the wrong way
Keynav failed when the position did _not_ change.
gtk/gtktextview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 4ddc279..0fd03c0 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -5324,7 +5324,7 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view,
old_xpos = priv->xoffset;
old_ypos = priv->yoffset;
gtk_text_view_move_viewport (text_view, scroll_step, count);
- if ((old_xpos != priv->xoffset || old_ypos != priv->yoffset) &&
+ if ((old_xpos == priv->xoffset && old_ypos == priv->yoffset) &&
leave_direction != -1 &&
!gtk_widget_keynav_failed (GTK_WIDGET (text_view),
leave_direction))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]