[nautilus] preferences-window: Add a user preference to use the new views



commit e808094d48b26e0abb5970c0e0114e1023a995c7
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Mar 30 17:43:45 2017 +0200

    preferences-window: Add a user preference to use the new views
    
    For next release I hope they are good enough to be able to enable them
    by user preference, and also makes easier for us to switch between them
    in order to test everything is fine in both.

 src/nautilus-preferences-window.c               |    5 ++
 src/resources/ui/nautilus-preferences-window.ui |   54 +++++++++++++++++++++--
 2 files changed, 55 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-preferences-window.c b/src/nautilus-preferences-window.c
index 8c4f981..c4952e9 100644
--- a/src/nautilus-preferences-window.c
+++ b/src/nautilus-preferences-window.c
@@ -59,6 +59,8 @@
     "trash_confirm_checkbutton"
 #define NAUTILUS_PREFERENCES_DIALOG_AUTOMATIC_DECOMPRESSION_WIDGET             \
     "automatic_decompression_checkbutton"
+#define NAUTILUS_PREFERENCES_DIALOG_USE_NEW_VIEWS_WIDGET                    \
+    "use_new_views_checkbutton"
 
 /* int enums */
 #define NAUTILUS_PREFERENCES_DIALOG_THUMBNAIL_LIMIT_WIDGET                     \
@@ -501,6 +503,9 @@ static void nautilus_preferences_window_setup(GtkBuilder *builder,
     bind_builder_bool (builder, nautilus_preferences,
                        NAUTILUS_PREFERENCES_DIALOG_DELETE_PERMANENTLY_WIDGET,
                        NAUTILUS_PREFERENCES_SHOW_DELETE_PERMANENTLY);
+    bind_builder_bool (builder, nautilus_preferences,
+                       NAUTILUS_PREFERENCES_DIALOG_USE_NEW_VIEWS_WIDGET,
+                       NAUTILUS_PREFERENCES_USE_EXPERIMENTAL_VIEWS);
 
     bind_builder_radio (
         builder, nautilus_preferences, (const char **) click_behavior_components,
diff --git a/src/resources/ui/nautilus-preferences-window.ui b/src/resources/ui/nautilus-preferences-window.ui
index 96a2be8..275a195 100644
--- a/src/resources/ui/nautilus-preferences-window.ui
+++ b/src/resources/ui/nautilus-preferences-window.ui
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.19.0 -->
+<!-- Generated with glade 3.20.0 -->
 <interface>
   <requires lib="gtk+" version="3.16"/>
   <object class="GtkListStore" id="icon_view_zoom_levels">
@@ -278,6 +278,52 @@
               </packing>
             </child>
             <child>
+              <object class="GtkBox" id="box2">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="orientation">vertical</property>
+                <property name="spacing">6</property>
+                <child>
+                  <object class="GtkLabel" id="label19">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="label" translatable="yes">Experimental</property>
+                    <property name="xalign">0</property>
+                    <attributes>
+                      <attribute name="weight" value="bold"/>
+                    </attributes>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">0</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkCheckButton" id="use_new_views_checkbutton">
+                    <property name="label" translatable="yes">Use the new _views</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">False</property>
+                    <property name="resize_mode">immediate</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
+                    <property name="draw_indicator">True</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">1</property>
+                  </packing>
+                </child>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
+            <child>
               <object class="GtkBox" id="vbox27">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
@@ -422,7 +468,7 @@ More information will appear when zooming closer.</property>
                       <object class="GtkLabel" id="label9">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="label" translatable="yes" comments="Translators: This is an ordinal 
number" context="the n-th position of an icon caption">Second</property>
+                        <property name="label" translatable="yes" context="the n-th position of an icon 
caption" comments="Translators: This is an ordinal number">Second</property>
                         <property name="xalign">1</property>
                         <style>
                           <class name="dim-label"/>
@@ -437,7 +483,7 @@ More information will appear when zooming closer.</property>
                       <object class="GtkLabel" id="label11">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="label" translatable="yes" comments="Translators: This is an ordinal 
number" context="the n-th position of an icon caption">Third</property>
+                        <property name="label" translatable="yes" context="the n-th position of an icon 
caption" comments="Translators: This is an ordinal number">Third</property>
                         <property name="xalign">1</property>
                         <style>
                           <class name="dim-label"/>
@@ -452,7 +498,7 @@ More information will appear when zooming closer.</property>
                       <object class="GtkLabel" id="label8">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="label" translatable="yes" comments="Translators: This is an ordinal 
number" context="the n-th position of an icon caption">First</property>
+                        <property name="label" translatable="yes" context="the n-th position of an icon 
caption" comments="Translators: This is an ordinal number">First</property>
                         <property name="xalign">1</property>
                         <style>
                           <class name="dim-label"/>


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