[gnome-builder] GbEditorSettingsWidget: plumb setting for insert-matching-brace
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] GbEditorSettingsWidget: plumb setting for insert-matching-brace
- Date: Fri, 19 Dec 2014 06:58:33 +0000 (UTC)
commit 12c46189e63b65940396ec5f5132842fd64cfe19
Author: Christian Hergert <christian hergert me>
Date: Thu Dec 18 22:57:27 2014 -0800
GbEditorSettingsWidget: plumb setting for insert-matching-brace
src/editor/gb-editor-settings-widget.c | 5 +++++
src/resources/ui/gb-editor-settings-widget.ui | 21 +++++++++++++++++++--
2 files changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/src/editor/gb-editor-settings-widget.c b/src/editor/gb-editor-settings-widget.c
index d19692c..b619d11 100644
--- a/src/editor/gb-editor-settings-widget.c
+++ b/src/editor/gb-editor-settings-widget.c
@@ -28,6 +28,7 @@ struct _GbEditorSettingsWidgetPrivate
GtkCheckButton *auto_indent;
GtkCheckButton *highlight_current_line;
GtkCheckButton *highlight_matching_brackets;
+ GtkCheckButton *insert_matching_brace;
GtkCheckButton *insert_spaces_instead_of_tabs;
GtkCheckButton *overwrite_braces;
GtkCheckButton *show_line_marks;
@@ -92,6 +93,9 @@ gb_editor_settings_widget_set_language (GbEditorSettingsWidget *widget,
g_settings_bind (priv->settings, "highlight-matching-brackets",
priv->highlight_matching_brackets, "active",
G_SETTINGS_BIND_DEFAULT);
+ g_settings_bind (priv->settings, "insert-matching-brace",
+ priv->insert_matching_brace, "active",
+ G_SETTINGS_BIND_DEFAULT);
g_settings_bind (priv->settings, "insert-spaces-instead-of-tabs",
priv->insert_spaces_instead_of_tabs, "active",
G_SETTINGS_BIND_DEFAULT);
@@ -189,6 +193,7 @@ gb_editor_settings_widget_class_init (GbEditorSettingsWidgetClass *klass)
gtk_widget_class_bind_template_child_private (widget_class, GbEditorSettingsWidget, auto_indent);
gtk_widget_class_bind_template_child_private (widget_class, GbEditorSettingsWidget,
highlight_current_line);
gtk_widget_class_bind_template_child_private (widget_class, GbEditorSettingsWidget,
highlight_matching_brackets);
+ gtk_widget_class_bind_template_child_private (widget_class, GbEditorSettingsWidget, insert_matching_brace);
gtk_widget_class_bind_template_child_private (widget_class, GbEditorSettingsWidget,
insert_spaces_instead_of_tabs);
gtk_widget_class_bind_template_child_private (widget_class, GbEditorSettingsWidget, right_margin_position);
gtk_widget_class_bind_template_child_private (widget_class, GbEditorSettingsWidget, overwrite_braces);
diff --git a/src/resources/ui/gb-editor-settings-widget.ui b/src/resources/ui/gb-editor-settings-widget.ui
index aa18c8c..6fe5c2c 100644
--- a/src/resources/ui/gb-editor-settings-widget.ui
+++ b/src/resources/ui/gb-editor-settings-widget.ui
@@ -145,8 +145,8 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="overwrite_braces">
- <property name="label" translatable="yes">Overwrite closing braces, brackets, quotations, and
parenthesis.</property>
+ <object class="GtkCheckButton" id="insert_matching_brace">
+ <property name="label" translatable="yes">Insert matching brace, bracket, quotation, and
parenthesis.</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -161,6 +161,23 @@
<property name="position">5</property>
</packing>
</child>
+ <child>
+ <object class="GtkCheckButton" id="overwrite_braces">
+ <property name="label" translatable="yes">Overwrite closing brace, bracket, quotation, and
parenthesis.</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="valign">center</property>
+ <property name="xalign">0</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">6</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="left_attach">0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]