mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-29 03:34:16 +00:00
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:
parent
03956539bd
commit
5e8d78e94d
3 changed files with 21 additions and 3 deletions
|
@ -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):
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue