summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-04-26 17:05:05 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2010-04-26 17:05:05 +0200
commita7336c72c6f6cc0b0340e218fd123bcdddb144b9 (patch)
tree1619e1a0e8a63058b09e41d3391842ed9685982f
parentd63623cee6ac5cbbb74f6f31a7afa660d2037cbe (diff)
downloadnautilus-a7336c72c6f6cc0b0340e218fd123bcdddb144b9.tar.gz
Always set the parent window in dialogs (#573788).
-rw-r--r--eel/eel-stock-dialogs.c2
-rw-r--r--libnautilus-private/nautilus-mime-actions.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/eel/eel-stock-dialogs.c b/eel/eel-stock-dialogs.c
index 34712c8e8..b6fe6b6ca 100644
--- a/eel/eel-stock-dialogs.c
+++ b/eel/eel-stock-dialogs.c
@@ -195,7 +195,7 @@ timed_wait_callback (gpointer callback_data)
/* Put up the timed wait window. */
button = wait->cancel_callback != NULL ? GTK_STOCK_CANCEL : GTK_STOCK_OK;
- dialog = GTK_DIALOG (eel_alert_dialog_new (NULL,
+ dialog = GTK_DIALOG (eel_alert_dialog_new (wait->parent_window,
0,
GTK_MESSAGE_INFO,
GTK_BUTTONS_NONE,
diff --git a/libnautilus-private/nautilus-mime-actions.c b/libnautilus-private/nautilus-mime-actions.c
index 77d933a02..b97ca7ced 100644
--- a/libnautilus-private/nautilus-mime-actions.c
+++ b/libnautilus-private/nautilus-mime-actions.c
@@ -1922,7 +1922,7 @@ activation_mount_not_mounted_callback (GObject *source_object,
error->code != G_IO_ERROR_FAILED_HANDLED &&
error->code != G_IO_ERROR_ALREADY_MOUNTED)) {
eel_show_error_dialog (_("Unable to mount location"),
- error->message, NULL);
+ error->message, parameters->parent_window);
}
if (error->domain != G_IO_ERROR ||
@@ -2195,7 +2195,7 @@ activation_mountable_mounted (NautilusFile *file,
error->code != G_IO_ERROR_FAILED_HANDLED &&
error->code != G_IO_ERROR_ALREADY_MOUNTED)) {
eel_show_error_dialog (_("Unable to mount location"),
- error->message, NULL);
+ error->message, parameters->parent_window);
}
if (error->code == G_IO_ERROR_CANCELLED) {