diff options
author | Mike Engber <engber@src.gnome.org> | 2000-12-06 01:11:49 +0000 |
---|---|---|
committer | Mike Engber <engber@src.gnome.org> | 2000-12-06 01:11:49 +0000 |
commit | b62c643220141b698f5f9b1d5b767b192a95dea3 (patch) | |
tree | 1398893057ec4ba4e0e403732550927e49145115 /src/nautilus-navigation-window.c | |
parent | fda762d74b19b0db8e19550a665d81ba19ffc0e2 (diff) | |
download | nautilus-b62c643220141b698f5f9b1d5b767b192a95dea3.tar.gz |
Keep the desktop from creating sidebar panels (it still has the sidebar) -
* src/nautilus-window.c: (nautilus_window_constructed),
(update_sidebar_panels_from_preferences):
Keep the desktop from creating sidebar panels (it still
has the sidebar) - bug 2603.
Diffstat (limited to 'src/nautilus-navigation-window.c')
-rw-r--r-- | src/nautilus-navigation-window.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nautilus-navigation-window.c b/src/nautilus-navigation-window.c index 8afa9c12c..92870b64f 100644 --- a/src/nautilus-navigation-window.c +++ b/src/nautilus-navigation-window.c @@ -501,6 +501,10 @@ nautilus_window_constructed (NautilusWindow *window) bonobo_ui_component_freeze (window->details->shell_ui, NULL); + /* FIXME bugzilla.eazel.com 1243: + * We should use inheritance instead of these special cases + * for the desktop window. + */ if (NAUTILUS_IS_DESKTOP_WINDOW (window)) { nautilus_bonobo_set_hidden (window->details->shell_ui, LOCATION_BAR_PATH, TRUE); @@ -1547,6 +1551,14 @@ update_sidebar_panels_from_preferences (NautilusWindow *window) g_assert (NAUTILUS_IS_WINDOW (window)); + /* FIXME bugzilla.eazel.com 1243: + * We should use inheritance instead of these special cases + * for the desktop window. + */ + if (NAUTILUS_IS_DESKTOP_WINDOW (window)) { + return; + } + /* Obtain list of enabled view identifiers */ identifier_list = nautilus_global_preferences_get_enabled_sidebar_panel_view_identifiers (); nautilus_window_set_sidebar_panels (window, identifier_list); |