summaryrefslogtreecommitdiff
path: root/src/nautilus-information-panel.h
diff options
context:
space:
mode:
authorAndy Hertzfeld <andy@src.gnome.org>2001-01-12 23:41:23 +0000
committerAndy Hertzfeld <andy@src.gnome.org>2001-01-12 23:41:23 +0000
commit9bbbc2805d55f8c8e31172785e8e974ddaddb22d (patch)
tree8ec67bde0d28340167f3599b09ec71adef68392e /src/nautilus-information-panel.h
parent261da07b3af9c48e61620e81dfae27a9036a68b0 (diff)
downloadnautilus-9bbbc2805d55f8c8e31172785e8e974ddaddb22d.tar.gz
fixed bug 5198, removing an active sidebar panel messes up the remaining
fixed bug 5198, removing an active sidebar panel messes up the remaining ones . I had already fixed this but missed the case when multiple windows were open. Fixed by adding a sidebar call to close the active panel if it matches a passed-in id, and used that in nautilus window to close the panel if necessary before destroying it. * src/nautilus-sidebar.c: (nautilus_sidebar_hide_active_panel_if_matches), (toggle_sidebar_panel): added routine to close the active panel if it matches a passed-in id. * src/nautilus-sidebar.h: added above mentioned routine * src/nautilus-window-manage-views.c: (handle_view_failure), (nautilus_window_set_sidebar_panels): close the active panel if necessary before destroying it.
Diffstat (limited to 'src/nautilus-information-panel.h')
-rw-r--r--src/nautilus-information-panel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-information-panel.h b/src/nautilus-information-panel.h
index d7ba21f0a..4d0a3ae90 100644
--- a/src/nautilus-information-panel.h
+++ b/src/nautilus-information-panel.h
@@ -62,6 +62,9 @@ void nautilus_sidebar_add_panel (NautilusSidebar *sidebar,
NautilusViewFrame *panel);
GtkWidget *nautilus_sidebar_create_context_menu (NautilusSidebar *sidebar);
+void nautilus_sidebar_hide_active_panel_if_matches (NautilusSidebar *sidebar,
+ const char *sidebar_id);
+
void nautilus_sidebar_remove_panel (NautilusSidebar *sidebar,
NautilusViewFrame *panel);
void nautilus_sidebar_set_uri (NautilusSidebar *sidebar,