Don't make progress dialogs transient for the desktop.

2004-08-30  Alexander Larsson  <alexl@redhat.com>

	* libnautilus-private/nautilus-file-operations.c:
	(create_transfer_dialog):
	* src/nautilus-desktop-window.c:
	(nautilus_desktop_window_instance_init):
	Don't make progress dialogs transient for the desktop.
This commit is contained in:
Alexander Larsson 2004-08-30 09:09:43 +00:00 committed by Alexander Larsson
parent 03956539bd
commit 5e8d78e94d
3 changed files with 21 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2004-08-30 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-file-operations.c:
(create_transfer_dialog):
* src/nautilus-desktop-window.c:
(nautilus_desktop_window_instance_init):
Don't make progress dialogs transient for the desktop.
2004-08-27 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-file.c (nautilus_get_group_names_including):

View file

@ -304,9 +304,16 @@ create_transfer_dialog (const GnomeVFSXferProgressInfo *progress_info,
/* Make the progress dialog show up over the window we are copying into */
if (transfer_info->parent_view != NULL) {
gtk_window_set_transient_for (
GTK_WINDOW (transfer_info->progress_dialog),
GTK_WINDOW (gtk_widget_get_toplevel (transfer_info->parent_view)));
GtkWidget *toplevel;
/* Transient-for-desktop are visible on all desktops, we don't want
that. */
toplevel = gtk_widget_get_toplevel (transfer_info->parent_view);
if (toplevel != NULL &&
g_object_get_data (G_OBJECT (toplevel), "is_desktop_window") == NULL) {
gtk_window_set_transient_for (GTK_WINDOW (transfer_info->progress_dialog),
GTK_WINDOW (toplevel));
}
}
}

View file

@ -60,6 +60,9 @@ nautilus_desktop_window_instance_init (NautilusDesktopWindow *window)
*/
gtk_window_set_resizable (GTK_WINDOW (window),
FALSE);
g_object_set_data (G_OBJECT (window), "is_desktop_window",
GINT_TO_POINTER (1));
}
static gint