summaryrefslogtreecommitdiff
path: root/src/nautilus-view-frame.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-view-frame.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-view-frame.c')
-rw-r--r--src/nautilus-view-frame.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nautilus-view-frame.c b/src/nautilus-view-frame.c
index 338f073e6..4cc7309f0 100644
--- a/src/nautilus-view-frame.c
+++ b/src/nautilus-view-frame.c
@@ -55,6 +55,7 @@ enum {
REPORT_LOAD_COMPLETE,
REPORT_LOAD_FAILED,
SET_TITLE,
+ QUIT_NAUTILUS,
ZOOM_LEVEL_CHANGED,
CLIENT_GONE,
GET_HISTORY_LIST,
@@ -157,6 +158,14 @@ nautilus_view_frame_initialize_class (NautilusViewFrameClass *klass)
set_title),
gtk_marshal_NONE__STRING,
GTK_TYPE_NONE, 1, GTK_TYPE_STRING);
+ signals[QUIT_NAUTILUS] =
+ gtk_signal_new ("quit_nautilus",
+ GTK_RUN_LAST,
+ object_class->type,
+ GTK_SIGNAL_OFFSET (NautilusViewFrameClass,
+ quit_nautilus),
+ gtk_marshal_NONE__NONE,
+ GTK_TYPE_NONE, 0);
signals[ZOOM_LEVEL_CHANGED] =
gtk_signal_new ("zoom_level_changed",
@@ -724,6 +733,13 @@ nautilus_view_frame_set_title (NautilusViewFrame *view,
}
void
+nautilus_view_frame_quit_nautilus (NautilusViewFrame *view)
+{
+ g_return_if_fail (NAUTILUS_IS_VIEW_FRAME (view));
+ gtk_signal_emit (GTK_OBJECT (view), signals[QUIT_NAUTILUS]);
+}
+
+void
nautilus_view_frame_zoom_level_changed (NautilusViewFrame *view,
double level)
{