[PATCH]: Remove --no-default-window option



I doubt that users want to make nautilus open the home folder
automatically. I didn't want it - it simply bugged me. I've read a few
times that others don't like this behavior as well.
Maybe, I'm plain wrong - but anyway, here comes a proposed patch I've
been using for quiet some time.

regs,
 Chris
Index: src/nautilus-application.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-application.c,v
retrieving revision 1.220
diff -u -r1.220 nautilus-application.c
--- src/nautilus-application.c	14 Apr 2004 15:35:24 -0000	1.220
+++ src/nautilus-application.c	8 May 2004 13:15:26 -0000
@@ -477,7 +477,6 @@
 nautilus_application_startup (NautilusApplication *application,
 			      gboolean kill_shell,
 			      gboolean restart_shell,
-			      gboolean no_default_window,
 			      gboolean no_desktop,
 			      gboolean do_first_time_druid_check,
 			      gboolean browser_window,
@@ -656,8 +655,6 @@
 			url_list = nautilus_make_uri_list_from_shell_strv (urls);
 			Nautilus_Shell_open_windows (shell, url_list, corba_geometry, browser_window, &ev);
 			CORBA_free (url_list);
-		} else if (!no_default_window) {
-			Nautilus_Shell_open_default_window (shell, corba_geometry, browser_window, &ev);
 		}
 		
 		/* Add ourselves to the session */
@@ -1227,7 +1224,7 @@
 {
 	NautilusWindow *window;
 	GList *l;
-	static char *clone_argv[] = { "nautilus", "--no-default-window" };
+	static char *clone_argv[] = { "nautilus" };
 	char **restart_argv;
 	int argc;
 	int i;
Index: src/nautilus-main.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-main.c,v
retrieving revision 1.135
diff -u -r1.135 nautilus-main.c
--- src/nautilus-main.c	18 Dec 2003 18:38:23 -0000	1.135
+++ src/nautilus-main.c	8 May 2004 13:15:27 -0000
@@ -169,7 +169,6 @@
 {
 	gboolean kill_shell;
 	gboolean restart_shell;
-	gboolean no_default_window;
 	gboolean browser_window;
 	gboolean no_desktop;
 	char *geometry;
@@ -189,8 +188,6 @@
 #endif
 		{ "geometry", 'g', POPT_ARG_STRING, NULL, 0,
 		  N_("Create the initial window with the given geometry."), N_("GEOMETRY") },
-		{ "no-default-window", 'n', POPT_ARG_NONE, NULL, 0,
-		  N_("Only create windows for explicitly specified URIs."), NULL },
 		{ "no-desktop", '\0', POPT_ARG_NONE, NULL, 0,
 		  N_("Do not manage the desktop (ignore the preference set in the preferences dialog)."), NULL },
 		{ "browser", '\0', POPT_ARG_NONE, NULL, 0,
@@ -207,7 +204,6 @@
 	options[i++].arg = &perform_self_check;
 #endif
 	options[i++].arg = &geometry;
-	options[i++].arg = &no_default_window;
 	options[i++].arg = &no_desktop;
 	options[i++].arg = &browser_window;
 	options[i++].arg = &kill_shell;
@@ -225,7 +221,6 @@
 	/* Get parameters. */
 	geometry = NULL;
 	kill_shell = FALSE;
-	no_default_window = FALSE;
 	no_desktop = FALSE;
 	perform_self_check = FALSE;
 	restart_shell = FALSE;
@@ -319,7 +314,7 @@
 		application = nautilus_application_new ();
 		nautilus_application_startup
 			(application,
-			 kill_shell, restart_shell, no_default_window, no_desktop,
+			 kill_shell, restart_shell, no_desktop,
 			 !(kill_shell || restart_shell),
 			 browser_window,
 			 geometry,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]