diff options
author | William Jon McCann <jmccann@redhat.com> | 2012-07-16 14:22:36 -0400 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2012-07-16 15:20:35 -0400 |
commit | 73445a7927b31b09d4a8f44e856f35d178cce2ce (patch) | |
tree | ad9d067f1f4d4a726ab0aa9de81d45607e2cb9e3 /libnautilus-private/nautilus-file-operations.c | |
parent | b1c13443f8188a5c7b23d566be6eb880a681a3ac (diff) | |
download | nautilus-73445a7927b31b09d4a8f44e856f35d178cce2ce.tar.gz |
always pass the parent window to the file operations
So that we can properly place resulting dialogs.
Diffstat (limited to 'libnautilus-private/nautilus-file-operations.c')
-rw-r--r-- | libnautilus-private/nautilus-file-operations.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c index a4090ac70..58e787f58 100644 --- a/libnautilus-private/nautilus-file-operations.c +++ b/libnautilus-private/nautilus-file-operations.c @@ -2352,13 +2352,16 @@ volume_mount_cb (GObject *source_object, if (!g_volume_mount_finish (G_VOLUME (source_object), res, &error)) { if (error->code != G_IO_ERROR_FAILED_HANDLED && error->code != G_IO_ERROR_ALREADY_MOUNTED) { + GtkWindow *parent; + + parent = gtk_mount_operation_get_parent (GTK_MOUNT_OPERATION (mount_op)); name = g_volume_get_name (G_VOLUME (source_object)); primary = g_strdup_printf (_("Unable to access %s"), name); g_free (name); success = FALSE; eel_show_error_dialog (primary, error->message, - NULL); + parent); g_free (primary); } g_error_free (error); |