[gnome-builder] settings: disable auto-indent setting for now
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] settings: disable auto-indent setting for now
- Date: Thu, 16 Oct 2014 01:13:39 +0000 (UTC)
commit cfd706d1818db0a82b80fffa4890bae6420438ca
Author: Christian Hergert <christian hergert me>
Date: Wed Oct 15 18:13:34 2014 -0700
settings: disable auto-indent setting for now
We need to plumb this properly so that we use the auto-indenter hooks
rather than GtkSourceView::auto-indent.
src/editor/gb-editor-tab.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/editor/gb-editor-tab.c b/src/editor/gb-editor-tab.c
index 4d3a1e5..de3ad78 100644
--- a/src/editor/gb-editor-tab.c
+++ b/src/editor/gb-editor-tab.c
@@ -208,8 +208,10 @@ gb_editor_tab_connect_settings (GbEditorTab *tab,
g_object_add_weak_pointer (G_OBJECT ((loc)), (gpointer *) &(loc)); \
} G_STMT_END
+#if 0
ADD_BINDING ("auto-indent", priv->source_view, "auto-indent",
priv->auto_indent_binding);
+#endif
ADD_BINDING ("highlight-current-line", priv->source_view,
"highlight-current-line",
priv->highlight_current_line_binding);
@@ -259,7 +261,9 @@ gb_editor_tab_disconnect_settings (GbEditorTab *tab)
(b) = NULL; \
}
+#if 0
REMOVE_BINDING (priv->auto_indent_binding);
+#endif
REMOVE_BINDING (priv->highlight_current_line_binding);
REMOVE_BINDING (priv->highlight_matching_brackets_binding);
REMOVE_BINDING (priv->indent_on_tab_binding);
@@ -1188,7 +1192,7 @@ gb_editor_tab_constructed (GObject *object)
/*
* WORKAROUND:
- *
+ *
* We need to connect VIM in the proper mode as early as possible
* so that our key-press-event signal is connected before the
* GtkSourceCompletion connects to key-press-event of the GtkSourceView.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]