Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--ChangeLog7
-rw-r--r--shell/ev-window.c14
2 files changed, 19 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3115079..c572204 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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
+
2005-09-13 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* pdf/ev-poppler.cc:
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