[evolution] Bug 763631 - Folder->Subscriptions opened empty with gtk+3.19.11



commit be0f25b8310b7794d4617815e04a207f3175e26b
Author: Milan Crha <mcrha redhat com>
Date:   Mon Mar 14 19:38:55 2016 +0100

    Bug 763631 - Folder->Subscriptions opened empty with gtk+3.19.11

 mail/em-subscription-editor.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/mail/em-subscription-editor.c b/mail/em-subscription-editor.c
index c4b6f39..934b24e 100644
--- a/mail/em-subscription-editor.c
+++ b/mail/em-subscription-editor.c
@@ -1687,6 +1687,12 @@ subscription_editor_realize (GtkWidget *widget)
 
        combo_box = GTK_COMBO_BOX (editor->priv->combo_box);
        gtk_combo_box_set_active (combo_box, initial_index);
+
+       g_signal_connect (
+               combo_box, "changed",
+               G_CALLBACK (subscription_editor_combo_box_changed_cb), editor);
+
+       subscription_editor_combo_box_changed_cb (combo_box, editor);
 }
 
 static void
@@ -1781,10 +1787,6 @@ em_subscription_editor_init (EMSubscriptionEditor *editor)
        editor->priv->combo_box = widget;
        gtk_widget_show (widget);
 
-       g_signal_connect (
-               widget, "changed",
-               G_CALLBACK (subscription_editor_combo_box_changed_cb), editor);
-
        widget = gtk_label_new_with_mnemonic (_("_Account:"));
        gtk_label_set_mnemonic_widget (
                GTK_LABEL (widget), editor->priv->combo_box);


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