summaryrefslogtreecommitdiff
path: root/src/nautilus-navigation-window.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2006-02-27 12:58:12 +0000
committerAlexander Larsson <alexl@src.gnome.org>2006-02-27 12:58:12 +0000
commit19b38f50b918e4f504f8df75d831d42552538fb8 (patch)
tree08c3a56c4c44d95bbb2ff104d9c5b1cff7771ee8 /src/nautilus-navigation-window.c
parent04c1c1140b51ddeaeb97bb6de5873d787b5d8262 (diff)
downloadnautilus-19b38f50b918e4f504f8df75d831d42552538fb8.tar.gz
Allow saving a sidebar width of 0 (#331475) Patch from Christian Neumair
2006-02-27 Alexander Larsson <alexl@redhat.com> * src/nautilus-navigation-window.c: Allow saving a sidebar width of 0 (#331475) Patch from Christian Neumair
Diffstat (limited to 'src/nautilus-navigation-window.c')
-rw-r--r--src/nautilus-navigation-window.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nautilus-navigation-window.c b/src/nautilus-navigation-window.c
index a2fe939a8..5b2033485 100644
--- a/src/nautilus-navigation-window.c
+++ b/src/nautilus-navigation-window.c
@@ -95,10 +95,6 @@
*/
#include "nautilus-desktop-window.h"
-/* FIXME bugzilla.gnome.org 41245: hardwired sizes */
-#define SIDE_PANE_MINIMUM_WIDTH 1
-#define SIDE_PANE_MINIMUM_HEIGHT 400
-
#define MAX_TITLE_LENGTH 180
#define MENU_PATH_BOOKMARKS_PLACEHOLDER "/MenuBar/Other Menus/Bookmarks/Bookmarks Placeholder"
@@ -115,7 +111,7 @@ enum {
ARG_APP
};
-static int side_pane_width_auto_value = SIDE_PANE_MINIMUM_WIDTH;
+static int side_pane_width_auto_value = 0;
static void add_sidebar_panels (NautilusNavigationWindow *window);
static void load_view_as_menu (NautilusWindow *window);
@@ -434,7 +430,7 @@ side_pane_size_allocate_callback (GtkWidget *widget,
if (eel_preferences_key_is_writable (NAUTILUS_PREFERENCES_SIDEBAR_WIDTH)) {
eel_preferences_set_integer
(NAUTILUS_PREFERENCES_SIDEBAR_WIDTH,
- allocation->width);
+ allocation->width <= 1 ? 0 : allocation->width);
}
}
}