summaryrefslogtreecommitdiff
path: root/libnautilus-private
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-12-10 13:26:28 +0100
committerAlexander Larsson <alexl@redhat.com>2009-12-10 18:08:17 +0100
commitee3c49268205cd6fd99694706a4b2b7e3aca8086 (patch)
tree072d96e1362dfcc9bc66859b12e5f4e468a01fc9 /libnautilus-private
parent5d236a20aadd291196e6ead3a2220e9c0258b126 (diff)
downloadnautilus-ee3c49268205cd6fd99694706a4b2b7e3aca8086.tar.gz
Remember extra pane status access windows.
The status of the extra pane display is remembered in a gconf key, analog to show/hide statusbar and other window display properties. As the extra-pane action implementation does a lot of widget and action re-ordering, this can only be done when a windows is set up completely, and is thus delayed in an idle-callback. If splitting the view is to be done on startup, the showing of the window is delayed to avoid ugly visible reordering.
Diffstat (limited to 'libnautilus-private')
-rw-r--r--libnautilus-private/apps_nautilus_preferences.schemas.in15
-rw-r--r--libnautilus-private/nautilus-global-preferences.c4
-rw-r--r--libnautilus-private/nautilus-global-preferences.h1
3 files changed, 20 insertions, 0 deletions
diff --git a/libnautilus-private/apps_nautilus_preferences.schemas.in b/libnautilus-private/apps_nautilus_preferences.schemas.in
index 61b643665..d5b432d29 100644
--- a/libnautilus-private/apps_nautilus_preferences.schemas.in
+++ b/libnautilus-private/apps_nautilus_preferences.schemas.in
@@ -1010,6 +1010,21 @@ most cases, this should be left alone. -->Sans 10</default>
</schema>
<schema>
+ <key>/schemas/apps/nautilus/preferences/start_with_extra_pane</key>
+ <applyto>/apps/nautilus/preferences/start_with_extra_pane</applyto>
+ <owner>nautilus</owner>
+ <type>bool</type>
+ <default>false</default>
+ <locale name="C">
+ <short>Show extra pane in new windows</short>
+ <long>
+ If set to true, newly opened windows will have the extra
+ pane visible.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
<key>/schemas/apps/nautilus/preferences/side_pane_view</key>
<applyto>/apps/nautilus/preferences/side_pane_view</applyto>
<owner>nautilus</owner>
diff --git a/libnautilus-private/nautilus-global-preferences.c b/libnautilus-private/nautilus-global-preferences.c
index faaab17b3..574ef8d1a 100644
--- a/libnautilus-private/nautilus-global-preferences.c
+++ b/libnautilus-private/nautilus-global-preferences.c
@@ -377,6 +377,10 @@ static const PreferenceDefault preference_defaults[] = {
PREFERENCE_BOOLEAN,
GINT_TO_POINTER (TRUE)
},
+ { NAUTILUS_PREFERENCES_START_WITH_EXTRA_PANE,
+ PREFERENCE_BOOLEAN,
+ GINT_TO_POINTER (FALSE)
+ },
{ NAUTILUS_PREFERENCES_NAVIGATION_WINDOW_SAVED_GEOMETRY,
PREFERENCE_STRING,
""
diff --git a/libnautilus-private/nautilus-global-preferences.h b/libnautilus-private/nautilus-global-preferences.h
index d9f18be66..53db6ee1d 100644
--- a/libnautilus-private/nautilus-global-preferences.h
+++ b/libnautilus-private/nautilus-global-preferences.h
@@ -115,6 +115,7 @@ typedef enum
#define NAUTILUS_PREFERENCES_START_WITH_STATUS_BAR "preferences/start_with_status_bar"
#define NAUTILUS_PREFERENCES_START_WITH_SIDEBAR "preferences/start_with_sidebar"
#define NAUTILUS_PREFERENCES_START_WITH_TOOLBAR "preferences/start_with_toolbar"
+#define NAUTILUS_PREFERENCES_START_WITH_EXTRA_PANE "preferences/start_with_extra_pane"
#define NAUTILUS_PREFERENCES_SIDE_PANE_VIEW "preferences/side_pane_view"
#define NAUTILUS_PREFERENCES_NAVIGATION_WINDOW_SAVED_GEOMETRY "preferences/navigation_window_saved_geometry"
#define NAUTILUS_PREFERENCES_NAVIGATION_WINDOW_MAXIMIZED "preferences/navigation_window_saved_maximized"