[evolution] I#340 - Hide explicit Send/Receive dialog by default



commit 485e6abbc8633c5c7f692c2ac84c376103030a05
Author: Milan Crha <mcrha redhat com>
Date:   Wed Feb 5 13:55:48 2020 +0100

    I#340 - Hide explicit Send/Receive dialog by default
    
    Closes https://gitlab.gnome.org/GNOME/evolution/issues/340

 src/mail/mail-send-recv.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/mail/mail-send-recv.c b/src/mail/mail-send-recv.c
index ca4f2e08ee..261c187762 100644
--- a/src/mail/mail-send-recv.c
+++ b/src/mail/mail-send-recv.c
@@ -977,9 +977,6 @@ build_dialog (GtkWindow *parent,
 
        gtk_widget_show_all (wgrid);
 
-       if (parent != NULL)
-               gtk_widget_show (GTK_WIDGET (gd));
-
        g_signal_connect (
                gd, "response",
                G_CALLBACK (dialog_response), data);
@@ -1775,9 +1772,9 @@ send_receive (GtkWindow *parent,
        GList *scan, *siter;
 
        if (send_recv_dialog != NULL) {
-               if (parent != NULL && gtk_widget_get_realized (send_recv_dialog)) {
+               if (parent)
                        gtk_window_present (GTK_WINDOW (send_recv_dialog));
-               }
+
                return send_recv_dialog;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]