[gnome-builder/wip/vim] editor: use equality func



commit eb3380032c2347472bba3e118b55bb14e109cd29
Author: Christian Hergert <christian hergert me>
Date:   Wed Oct 1 14:08:06 2014 -0700

    editor: use equality func

 src/editor/gb-editor-tab.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/editor/gb-editor-tab.c b/src/editor/gb-editor-tab.c
index c7f5b98..0bec0f6 100644
--- a/src/editor/gb-editor-tab.c
+++ b/src/editor/gb-editor-tab.c
@@ -691,7 +691,7 @@ select_and_animate (GbEditorTab       *tab,
   gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (priv->source_view), &copy, 0.0,
                                 TRUE, 0.0, 0.5);
 
-  if (gtk_text_iter_compare (begin, end) != 0)
+  if (!gtk_text_iter_equal (begin, end))
     delayed_animation (tab);
 }
 


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