[gnome-builder] libide/tweaks: add demo settings toggles



commit 263587da7d645c36291a3e1ac3868bc7a1812979
Author: Christian Hergert <chergert redhat com>
Date:   Sat Aug 6 01:23:24 2022 -0700

    libide/tweaks: add demo settings toggles

 src/libide/tweaks/demo/040-code-languages.ui | 13 +++++++++++++
 src/libide/tweaks/demo/041-code-language.ui  |  8 ++++----
 2 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/src/libide/tweaks/demo/040-code-languages.ui b/src/libide/tweaks/demo/040-code-languages.ui
index 3bd87ea1c..cab949aae 100644
--- a/src/libide/tweaks/demo/040-code-languages.ui
+++ b/src/libide/tweaks/demo/040-code-languages.ui
@@ -17,6 +17,19 @@
                         <lookup name="item">language_page_factory</lookup>
                       </lookup>
                     </binding>
+                    <child>
+                      <object class="IdeTweaksSettings" id="language_page_settings">
+                        <property name="schema-id">org.gnome.builder.editor.language</property>
+                        <binding name="schema-path">
+                          <closure type="gchararray" function="format">
+                            <constant type="gchararray">/org/gnome/builder/editor/languages/%s/</constant>
+                            <lookup name="id" type="GtkSourceLanguage">
+                              <lookup name="item">language_page_factory</lookup>
+                            </lookup>
+                          </closure>
+                        </binding>
+                      </object>
+                    </child>
                   </object>
                 </child>
               </object>
diff --git a/src/libide/tweaks/demo/041-code-language.ui b/src/libide/tweaks/demo/041-code-language.ui
index 6e62bc233..d334ab2cb 100644
--- a/src/libide/tweaks/demo/041-code-language.ui
+++ b/src/libide/tweaks/demo/041-code-language.ui
@@ -16,28 +16,28 @@
                           <object class="IdeTweaksSwitch" id="language_page_general_group_trim_switch">
                             <property name="title" translatable="yes">Trim Trailing Whitespace</property>
                             <property name="subtitle" translatable="yes">Upon saving, trailing whitespace 
will be removed from modified lines</property>
-                            <property name="action-name" 
translatable="yes">settings:org.gnome.builder.editor.language.trim-trailing-whitespace</property>
+                            <property name="action-name" 
translatable="yes">settings.org.gnome.builder.editor.language.trim-trailing-whitespace</property>
                           </object>
                         </child>
                         <child>
                           <object class="IdeTweaksSwitch" 
id="language_page_general_group_overwrite_braces_switch">
                             <property name="title" translatable="yes">Overwrite Braces</property>
                             <property name="subtitle" translatable="yes">Overwrite closing braces, brackets, 
and parenthesis</property>
-                            <property name="action-name" 
translatable="yes">settings:org.gnome.builder.editor.language.overwrite-braces</property>
+                            <property name="action-name" 
translatable="yes">settings.org.gnome.builder.editor.language.overwrite-braces</property>
                           </object>
                         </child>
                         <child>
                           <object class="IdeTweaksSwitch" 
id="language_page_general_group_insert_matching_switch">
                             <property name="title" translatable="yes">Insert Matching Braces</property>
                             <property name="subtitle" translatable="yes">Automatically close braces, 
brackets, and parenthesis</property>
-                            <property name="action-name" 
translatable="yes">settings:org.gnome.builder.editor.language.insert-matching-brace</property>
+                            <property name="action-name" 
translatable="yes">settings.org.gnome.builder.editor.language.insert-matching-brace</property>
                           </object>
                         </child>
                         <child>
                           <object class="IdeTweaksSwitch" 
id="language_page_general_group_insert_trailing_newline_switch">
                             <property name="title" translatable="yes">Insert Trailing Line</property>
                             <property name="subtitle" translatable="yes">Ensure files end with a new 
line</property>
-                            <property name="action-name" 
translatable="yes">settings:org.gnome.builder.editor.language.insert-trailing-newline</property>
+                            <property name="action-name" 
translatable="yes">settings.org.gnome.builder.editor.language.insert-trailing-newline</property>
                           </object>
                         </child>
                       </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]