[nautilus] Make sure autorun dialogs stay on top
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Make sure autorun dialogs stay on top
- Date: Wed, 15 Aug 2012 13:39:44 +0000 (UTC)
commit 9e126637b13d554c9afc0bc8f2ad3cd097901607
Author: William Jon McCann <jmccann redhat com>
Date: Tue Aug 14 13:07:44 2012 -0400
Make sure autorun dialogs stay on top
This is required because we don't show dialogs in the
window picker and if the window pops under another window
there is no way to get it back
src/nautilus-autorun-software.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-autorun-software.c b/src/nautilus-autorun-software.c
index d298af0..4378bf6 100644
--- a/src/nautilus-autorun-software.c
+++ b/src/nautilus-autorun-software.c
@@ -170,6 +170,11 @@ out:
GTK_BUTTONS_OK,
_("<big><b>Error autorunning software</b></big>"));
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", error_string);
+ /* This is required because we don't show dialogs in the
+ window picker and if the window pops under another window
+ there is no way to get it back. */
+ gtk_window_set_keep_above (GTK_WINDOW (dialog), TRUE);
+
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
g_free (error_string);
@@ -202,6 +207,11 @@ present_autorun_for_software_dialog (GMount *mount)
"If in doubt, press Cancel."),
mount_name);
+ /* This is required because we don't show dialogs in the
+ window picker and if the window pops under another window
+ there is no way to get it back. */
+ gtk_window_set_keep_above (GTK_WINDOW (dialog), TRUE);
+
/* TODO: in a star trek future add support for verifying
* software on media (e.g. if it has a certificate, check it
* etc.)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]