summaryrefslogtreecommitdiff
path: root/src/nautilus-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-shell.c')
-rw-r--r--src/nautilus-shell.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/nautilus-shell.c b/src/nautilus-shell.c
index 599f41a30..bda0976f8 100644
--- a/src/nautilus-shell.c
+++ b/src/nautilus-shell.c
@@ -259,14 +259,11 @@ static void
corba_manage_desktop (PortableServer_Servant servant,
CORBA_Environment *ev)
{
- NautilusShell *shell;
- static NautilusDesktopWindow *desktop_window;
-
- shell = NAUTILUS_SHELL (((BonoboObjectServant *) servant)->bonobo_object);
+ NautilusShell *shell;
+ NautilusApplication *application;
- /* Create a desktop window. */
- if (desktop_window == NULL) {
- desktop_window = nautilus_desktop_window_new (shell->details->application);
- }
- gtk_widget_show (GTK_WIDGET (desktop_window));
+ shell = NAUTILUS_SHELL (((BonoboObjectServant *) servant)->bonobo_object);
+ application = NAUTILUS_APPLICATION (shell->details->application);
+
+ nautilus_application_open_desktop (application);
}