Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-09-16 09:40:36 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-09-16 09:40:36 (GMT)
commitc98583ed7fd17fef72c4d9787813059d2fa45a94 (patch)
tree1e03fc3cce1ac29a7eea3d61f7af2d890ce34ba9 /shell
parent294ae7b1c246913424de7c9c7dbd8737cb0d7986 (diff)
Make dialog transient so it doesnt block other windows
2005-09-16 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: (unable_to_load_dialog_response_cb), (unable_to_load): Make dialog transient so it doesnt block other windows
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 5449ab9..67bbfc8 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -543,6 +543,14 @@ ev_window_is_empty (const EvWindow *ev_window)
}
static void
+unable_to_load_dialog_response_cb (GtkWidget *dialog,
+ gint response_id,
+ EvWindow *ev_window)
+{
+ gtk_widget_destroy (dialog);
+}
+
+static void
unable_to_load (EvWindow *ev_window,
const char *error_message)
{
@@ -555,8 +563,10 @@ unable_to_load (EvWindow *ev_window,
_("Unable to open document"));
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
"%s", error_message);
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
+ g_signal_connect (dialog, "response",
+ G_CALLBACK (unable_to_load_dialog_response_cb),
+ ev_window);
+ gtk_widget_show (dialog);
}
static void