summaryrefslogtreecommitdiff
path: root/src/nautilus-application.c
diff options
context:
space:
mode:
authorMike Engber <engber@src.gnome.org>2000-07-12 00:41:34 +0000
committerMike Engber <engber@src.gnome.org>2000-07-12 00:41:34 +0000
commita409c1bb9891c3a84b078981372441c4553c443d (patch)
treeff2c6bc8d7f8541976dcf264e90fb1bbc5d14124 /src/nautilus-application.c
parentaf430dfa550da0011e9317b3dd4f7128906b2413 (diff)
downloadnautilus-a409c1bb9891c3a84b078981372441c4553c443d.tar.gz
Hooked up the quit menu in the desktop context menu to quit Nautilus. Now,
* libnautilus/nautilus-view-component.idl: * libnautilus/nautilus-view.c: (nautilus_view_quit_nautilus): * libnautilus/nautilus-view.h: * src/file-manager/fm-desktop-icon-view.c: (fm_desktop_icon_view_quit_menu_item_callback), (fm_desktop_icon_view_create_background_context_menu_items): * src/file-manager/fm-directory-view.c: (fm_directory_view_quit_nautilus): * src/file-manager/fm-directory-view.h: * src/nautilus-application.c: (nautilus_application_startup), (nautilus_application_destroy_window): * src/nautilus-application.h: * src/nautilus-desktop-window.c: (nautilus_desktop_window_new): * src/nautilus-view-frame-corba.c: (impl_Nautilus_ViewFrame_set_title), (impl_Nautilus_ViewFrame_quit_nautilus): * src/nautilus-view-frame-private.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class), (nautilus_view_frame_set_title), (nautilus_view_frame_quit_nautilus): * src/nautilus-view-frame.h: * src/nautilus-window-manage-views.c: (nautilus_window_load_content_view): * src/nautilus-window.c: (nautilus_window_quit_nautilus_callback), (nautilus_window_connect_view): Hooked up the quit menu in the desktop context menu to quit Nautilus. Now, if Nautilus is managing the desktop no default window is created and Nautilus does not quit when the last window is closed - i.e. use the quit menu item instead. Bugs 1050 and 1051.
Diffstat (limited to 'src/nautilus-application.c')
-rw-r--r--src/nautilus-application.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 387f1b483..659243039 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -391,11 +391,7 @@ nautilus_application_startup (NautilusApplication *application,
CORBA_free (url_list);
}
- /* FIXME bugzilla.eazel.com 1051: Change this logic back so it won't
- * make a new window when asked to manage the desktop, once we have
- * a way to get rid of the desktop.
- */
- if (/* !manage_desktop && */ urls == NULL) {
+ if (!manage_desktop && urls == NULL) {
Nautilus_Shell_open_default_window (shell, &ev);
}
@@ -405,16 +401,13 @@ nautilus_application_startup (NautilusApplication *application,
out:
CORBA_exception_free (&ev);
- return application->windows != NULL;
+ return application->windows != NULL || application->has_desktop;
}
static void
nautilus_application_destroy_window (GtkObject *obj, NautilusApplication *application)
{
application->windows = g_slist_remove (application->windows, obj);
- if (application->windows == NULL) {
- nautilus_application_quit ();
- }
}
void