From: Marco Pesenti Gritti Date: Fri, 16 Sep 2005 09:40:36 +0000 (+0000) Subject: Make dialog transient so it doesnt block other windows X-Git-Tag: EVINCE_0_5_0~162 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=c98583ed7fd17fef72c4d9787813059d2fa45a94;p=evince.git Make dialog transient so it doesnt block other windows 2005-09-16 Marco Pesenti Gritti * shell/ev-window.c: (unable_to_load_dialog_response_cb), (unable_to_load): Make dialog transient so it doesnt block other windows --- diff --git a/ChangeLog b/ChangeLog index 31150794..c5722040 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-09-16 Marco Pesenti Gritti + + * 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 * pdf/ev-poppler.cc: diff --git a/shell/ev-window.c b/shell/ev-window.c index 5449ab93..67bbfc89 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -542,6 +542,14 @@ ev_window_is_empty (const EvWindow *ev_window) (ev_window->priv->xfer_job == NULL); } +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