diff options
author | Federico Mena Quintero <federico@novell.com> | 2006-03-20 18:40:38 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2006-03-20 18:40:38 +0000 |
commit | ceea7a034d7f920fc2edbbd22da63ae48f72dfb6 (patch) | |
tree | d15a1519f5fe27ac5c69031f3e169076a381e5c7 /src/nautilus-window.h | |
parent | bb783d13807c40414ecb396b12573466d5e84fc5 (diff) | |
download | nautilus-ceea7a034d7f920fc2edbbd22da63ae48f72dfb6.tar.gz |
Don't set the visibility of the "burn CD" action here.
2006-03-14 Federico Mena Quintero <federico@novell.com>
* src/nautilus-window-menus.c: (nautilus_window_initialize_menus):
Don't set the visibility of the "burn CD" action here.
(nautilus_window_initialize_menus_constructed): New public
function. Only disable NAUTILUS_ACTION_GO_TO_BURN_CD if we are in
a window which has a menubar. This prevents calling
have_burn_uri() unnecessarily for the desktop window, as this is
an expensive operation during login (up to 1 second!). The way
have_burn_uri() works is by creating a "burn:///" URI and seeing
if it is valid, but this makes gnome-vfs load libmapping.so from
nautilus-cd-burner; this takes a long time during login.
* src/nautilus-window-private.h: Added prototype for
nautilus_window_initialize_menus_constructed().
* src/nautilus-window.h: New prototype for
nautilus_window_has_menubar_and_statusbar().
* src/nautilus-window.c
(nautilus_window_has_menubar_and_statusbar): New function; returns
whether the window should have a menubar and statusbar. This
depends on the window_type from the class structure.
(nautilus_window_constructor): Call
nautilus_window_initialize_menus_constructed(). We do it here so
that its own call to nautilus_window_has_menubar_and_statusbar()
will already have the right value for class->window_type.
Diffstat (limited to 'src/nautilus-window.h')
-rw-r--r-- | src/nautilus-window.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-window.h b/src/nautilus-window.h index 1eb2f9086..1d2f0bd55 100644 --- a/src/nautilus-window.h +++ b/src/nautilus-window.h @@ -150,5 +150,6 @@ void nautilus_window_allow_burn_cd (NautilusWindow *window GtkUIManager * nautilus_window_get_ui_manager (NautilusWindow *window); void nautilus_window_add_extra_location_widget (NautilusWindow *window, GtkWidget *widget); +gboolean nautilus_window_has_menubar_and_statusbar (NautilusWindow *window); #endif |