Commit 133d7c9b authored by Dave Camp's avatar Dave Camp Committed by Dave Camp
Browse files

Don't set the restart command here. (save_session): Implemented.

2002-05-30  Dave Camp  <dave@ximian.com>

	* src/nautilus-application.c (set_session_restart): Don't set the
	restart command here.
	(save_session): Implemented.

	* src/nautilus-window-manage-views.c (update_title): Set the role
	to the displayed uri.
parent 8969a4e1
2002-05-30 Dave Camp <dave@ximian.com>
* src/nautilus-application.c (set_session_restart): Don't set the
restart command here.
(save_session): Implemented.
* src/nautilus-window-manage-views.c (update_title): Set the role
to the displayed uri.
2002-05-25 David Bordoley <bordoley@msu.edu>
*src/nautilus-window-menus.c
......
......@@ -842,15 +842,43 @@ static gint
save_session (GnomeClient *client, gint phase, GnomeSaveStyle save_style, gint shutdown,
GnomeInteractStyle interact_style, gint fast, gpointer data)
{
NautilusWindow *window;
GList *l;
static char *clone_argv[] = { "nautilus", "--no-default-window" };
char **restart_argv;
int argc;
int i;
int num_windows;
num_windows = g_list_length (nautilus_application_window_list);
if (num_windows > 0) {
argc = 1 + num_windows;
i = 0;
restart_argv = g_new (char *, argc);
restart_argv[i++] = g_strdup ("nautilus");
for (l = nautilus_application_window_list; l != NULL; l = l->next) {
window = NAUTILUS_WINDOW (l->data);
restart_argv[i++] = nautilus_window_get_location (window);
}
gnome_client_set_restart_command (client, argc, restart_argv);
for (i = 0; i < argc; i++) {
g_free (restart_argv[i]);
}
g_free (restart_argv);
} else {
gnome_client_set_restart_command (client,
G_N_ELEMENTS (clone_argv),
clone_argv);
}
return TRUE;
}
static void
set_session_restart (GnomeClient *client, gboolean restart)
{
static char *restart_argv[] = { "nautilus", "--no-default-window", 0 };
gnome_client_set_restart_command (client, 2, restart_argv);
gnome_client_set_priority (client, 40);
if (restart && g_getenv ("NAUTILUS_DEBUG") == NULL) {
......
......@@ -250,6 +250,9 @@ update_title (NautilusWindow *window)
g_list_free (sidebar_panels);
g_free (title);
/* Set the role used by the window manager for session management */
gtk_window_set_role (GTK_WINDOW (window), window->details->location);
}
/* set_displayed_location:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment