Blob Blame History Raw
From c77f0cd06eb26716ba03c79a4a47c76e334faec4 Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Fri, 31 Mar 2017 15:21:45 -0400
Subject: [PATCH 11/13] chooser: make host list fill the dialog

---
 chooser/gdm-host-chooser-dialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chooser/gdm-host-chooser-dialog.c b/chooser/gdm-host-chooser-dialog.c
index 02169502..b9581a34 100644
--- a/chooser/gdm-host-chooser-dialog.c
+++ b/chooser/gdm-host-chooser-dialog.c
@@ -106,61 +106,61 @@ gdm_host_chooser_dialog_get_property (GObject        *object,
         }
 }
 
 static void
 on_response (GdmHostChooserDialog *dialog,
              gint                  response_id)
 {
         switch (response_id) {
         case GTK_RESPONSE_APPLY:
                 gdm_host_chooser_widget_refresh (GDM_HOST_CHOOSER_WIDGET (dialog->priv->chooser_widget));
                 g_signal_stop_emission_by_name (dialog, "response");
                 break;
         default:
                 break;
         }
 }
 
 static GObject *
 gdm_host_chooser_dialog_constructor (GType                  type,
                                      guint                  n_construct_properties,
                                      GObjectConstructParam *construct_properties)
 {
         GdmHostChooserDialog      *dialog;
 
         dialog = GDM_HOST_CHOOSER_DIALOG (G_OBJECT_CLASS (gdm_host_chooser_dialog_parent_class)->constructor (type,
                                                                                                                            n_construct_properties,
                                                                                                                            construct_properties));
 
 
         dialog->priv->chooser_widget = gdm_host_chooser_widget_new (dialog->priv->kind_mask);
-        gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), dialog->priv->chooser_widget);
+        gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), dialog->priv->chooser_widget, TRUE, TRUE, 0);
         gtk_container_set_border_width (GTK_CONTAINER (dialog->priv->chooser_widget), 5);
 
         gtk_dialog_add_buttons (GTK_DIALOG (dialog),
                                 GTK_STOCK_REFRESH, GTK_RESPONSE_APPLY,
                                 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                                 GTK_STOCK_CONNECT, GTK_RESPONSE_OK,
                                 NULL);
 
         gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ALWAYS);
         gtk_container_set_border_width (GTK_CONTAINER (dialog), 12);
         gtk_window_set_title (GTK_WINDOW (dialog), _("Select System"));
         gtk_window_set_icon_name (GTK_WINDOW (dialog), "computer");
 
         g_signal_connect (dialog,
                           "response",
                           G_CALLBACK (on_response),
                           dialog);
 
         gtk_widget_show_all (GTK_WIDGET (dialog));
 
         return G_OBJECT (dialog);
 }
 
 static void
 gdm_host_chooser_dialog_dispose (GObject *object)
 {
         g_debug ("Disposing host_chooser_dialog");
 
         G_OBJECT_CLASS (gdm_host_chooser_dialog_parent_class)->dispose (object);
 }
-- 
2.12.0