[gnome-builder] libide/gui: hide/show some sections based on project/application



commit a685eb15fa52cf1937b62caaf2505cd042348b71
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 23 14:55:16 2022 -0700

    libide/gui: hide/show some sections based on project/application

 src/libide/gui/tweaks.ui | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/libide/gui/tweaks.ui b/src/libide/gui/tweaks.ui
index cbbbfec4c..85b87cda8 100644
--- a/src/libide/gui/tweaks.ui
+++ b/src/libide/gui/tweaks.ui
@@ -1,9 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <template class="IdeTweaks">
+    <child>
+      <object class="IdeTweaksSection" id="overview_section">
+        <property name="hidden-when">application</property>
+      </object>
+    </child>
     <child>
       <object class="IdeTweaksSection" id="visual_section">
         <property name="title" translatable="yes">Visual</property>
+        <property name="hidden-when">project</property>
         <child>
           <object class="IdeTweaksPage" id="appearance_page">
             <property name="icon-name">preferences-desktop-appearance-symbolic</property>
@@ -32,6 +38,7 @@
     <child>
       <object class="IdeTweaksSection" id="projects_section">
         <property name="title" translatable="yes">Projects</property>
+        <property name="hidden-when">project</property>
       </object>
     </child>
     <child>
@@ -47,6 +54,7 @@
     <child>
       <object class="IdeTweaksSection" id="plugins_section">
         <property name="title" translatable="yes">Plugins</property>
+        <property name="hidden-when">project</property>
         <child>
           <object class="IdeTweaksPage" id="plugins_page">
             <property name="icon-name">builder-plugin-symbolic</property>


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