[gnome-builder] GbEditorFrame: use text view scroll helper
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] GbEditorFrame: use text view scroll helper
- Date: Sat, 20 Dec 2014 09:38:37 +0000 (UTC)
commit d99a5fb17675bec2891fd2e1ce07f390e5d43090
Author: Christian Hergert <christian hergert me>
Date: Sat Dec 20 01:38:18 2014 -0800
GbEditorFrame: use text view scroll helper
src/editor/gb-editor-frame.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/editor/gb-editor-frame.c b/src/editor/gb-editor-frame.c
index 1ca82d9..f095c85 100644
--- a/src/editor/gb-editor-frame.c
+++ b/src/editor/gb-editor-frame.c
@@ -125,8 +125,8 @@ gb_editor_frame_move_next_match (GbEditorFrame *frame)
found_match:
gtk_text_buffer_select_range (GTK_TEXT_BUFFER (priv->document),
&match_begin, &match_begin);
- gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (priv->source_view),
- &match_begin, 0.0, TRUE, 0.5, 0.5);
+ gb_gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (priv->source_view),
+ &match_begin, 0.0, TRUE, 0.5, 0.5);
EXIT;
}
@@ -175,8 +175,8 @@ gb_editor_frame_move_previous_match (GbEditorFrame *frame)
found_match:
gtk_text_buffer_select_range (GTK_TEXT_BUFFER (priv->document),
&match_begin, &match_begin);
- gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (priv->source_view),
- &match_begin, 0.0, TRUE, 0.5, 0.5);
+ gb_gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (priv->source_view),
+ &match_begin, 0.0, TRUE, 0.5, 0.5);
EXIT;
}
@@ -356,8 +356,8 @@ select_range:
gtk_text_buffer_select_range (buffer, &iter, &iter);
gtk_text_buffer_end_user_action (buffer);
- gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (priv->source_view), &iter,
- 0.25, TRUE, 0.5, 0.5);
+ gb_gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (priv->source_view), &iter,
+ 0.25, TRUE, 0.5, 0.5);
cleanup:
g_free (input);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]