[gnome-builder] snippets: respect insert-spaces-instead-of-tabs upon snippet insertion.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] snippets: respect insert-spaces-instead-of-tabs upon snippet insertion.
- Date: Mon, 8 Sep 2014 02:19:46 +0000 (UTC)
commit ab0b114fce39228d1068f364ed553304978fe71e
Author: Christian Hergert <christian hergert me>
Date: Sun Sep 7 19:13:08 2014 -0700
snippets: respect insert-spaces-instead-of-tabs upon snippet insertion.
src/editor/gb-source-view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/editor/gb-source-view.c b/src/editor/gb-source-view.c
index 349ebe8..e8da095 100644
--- a/src/editor/gb-source-view.c
+++ b/src/editor/gb-source-view.c
@@ -388,10 +388,10 @@ gb_source_view_push_snippet (GbSourceView *view,
g_queue_push_head (priv->snippets, g_object_ref (snippet));
insert_spaces = gtk_source_view_get_insert_spaces_instead_of_tabs (GTK_SOURCE_VIEW (view));
- gb_source_snippet_set_insert_spaces_instead_of_tabs (snippet, insert_spaces);
+ gb_source_snippet_context_set_use_spaces (context, insert_spaces);
tab_width = gtk_source_view_get_tab_width (GTK_SOURCE_VIEW (view));
- gb_source_snippet_set_tab_width (snippet, tab_width);
+ gb_source_snippet_context_set_tab_width (context, tab_width);
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
mark = gtk_text_buffer_get_insert (buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]