Commit 12c46189 authored by Christian Hergert's avatar Christian Hergert
Browse files

GbEditorSettingsWidget: plumb setting for insert-matching-brace

parent a855af72
......@@ -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);
......
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment