Blame SOURCES/0011-chooser-make-host-list-fill-the-dialog.patch

2fc437
From c77f0cd06eb26716ba03c79a4a47c76e334faec4 Mon Sep 17 00:00:00 2001
2fc437
From: Ray Strode <rstrode@redhat.com>
2fc437
Date: Fri, 31 Mar 2017 15:21:45 -0400
2fc437
Subject: [PATCH 11/13] chooser: make host list fill the dialog
2fc437
2fc437
---
2fc437
 chooser/gdm-host-chooser-dialog.c | 2 +-
2fc437
 1 file changed, 1 insertion(+), 1 deletion(-)
2fc437
2fc437
diff --git a/chooser/gdm-host-chooser-dialog.c b/chooser/gdm-host-chooser-dialog.c
2fc437
index 02169502..b9581a34 100644
2fc437
--- a/chooser/gdm-host-chooser-dialog.c
2fc437
+++ b/chooser/gdm-host-chooser-dialog.c
2fc437
@@ -106,61 +106,61 @@ gdm_host_chooser_dialog_get_property (GObject        *object,
2fc437
         }
2fc437
 }
2fc437
 
2fc437
 static void
2fc437
 on_response (GdmHostChooserDialog *dialog,
2fc437
              gint                  response_id)
2fc437
 {
2fc437
         switch (response_id) {
2fc437
         case GTK_RESPONSE_APPLY:
2fc437
                 gdm_host_chooser_widget_refresh (GDM_HOST_CHOOSER_WIDGET (dialog->priv->chooser_widget));
2fc437
                 g_signal_stop_emission_by_name (dialog, "response");
2fc437
                 break;
2fc437
         default:
2fc437
                 break;
2fc437
         }
2fc437
 }
2fc437
 
2fc437
 static GObject *
2fc437
 gdm_host_chooser_dialog_constructor (GType                  type,
2fc437
                                      guint                  n_construct_properties,
2fc437
                                      GObjectConstructParam *construct_properties)
2fc437
 {
2fc437
         GdmHostChooserDialog      *dialog;
2fc437
 
2fc437
         dialog = GDM_HOST_CHOOSER_DIALOG (G_OBJECT_CLASS (gdm_host_chooser_dialog_parent_class)->constructor (type,
2fc437
                                                                                                                            n_construct_properties,
2fc437
                                                                                                                            construct_properties));
2fc437
 
2fc437
 
2fc437
         dialog->priv->chooser_widget = gdm_host_chooser_widget_new (dialog->priv->kind_mask);
2fc437
-        gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), dialog->priv->chooser_widget);
2fc437
+        gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), dialog->priv->chooser_widget, TRUE, TRUE, 0);
2fc437
         gtk_container_set_border_width (GTK_CONTAINER (dialog->priv->chooser_widget), 5);
2fc437
 
2fc437
         gtk_dialog_add_buttons (GTK_DIALOG (dialog),
2fc437
                                 GTK_STOCK_REFRESH, GTK_RESPONSE_APPLY,
2fc437
                                 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
2fc437
                                 GTK_STOCK_CONNECT, GTK_RESPONSE_OK,
2fc437
                                 NULL);
2fc437
 
2fc437
         gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ALWAYS);
2fc437
         gtk_container_set_border_width (GTK_CONTAINER (dialog), 12);
2fc437
         gtk_window_set_title (GTK_WINDOW (dialog), _("Select System"));
2fc437
         gtk_window_set_icon_name (GTK_WINDOW (dialog), "computer");
2fc437
 
2fc437
         g_signal_connect (dialog,
2fc437
                           "response",
2fc437
                           G_CALLBACK (on_response),
2fc437
                           dialog);
2fc437
 
2fc437
         gtk_widget_show_all (GTK_WIDGET (dialog));
2fc437
 
2fc437
         return G_OBJECT (dialog);
2fc437
 }
2fc437
 
2fc437
 static void
2fc437
 gdm_host_chooser_dialog_dispose (GObject *object)
2fc437
 {
2fc437
         g_debug ("Disposing host_chooser_dialog");
2fc437
 
2fc437
         G_OBJECT_CLASS (gdm_host_chooser_dialog_parent_class)->dispose (object);
2fc437
 }
2fc437
-- 
2fc437
2.12.0
2fc437