]> git.0d.be Git - empathy.git/commitdiff
invite-participant-dialog: add a scrolled window
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 6 May 2011 12:55:39 +0000 (14:55 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 18 May 2011 13:40:10 +0000 (15:40 +0200)
src/empathy-invite-participant-dialog.c

index e69f6461dd0128aaf59b89da706e7f176707a643..b66d0979453acc119ee7488b39d62333e827eede 100644 (file)
@@ -227,6 +227,7 @@ empathy_invite_participant_dialog_init (EmpathyInviteParticipantDialog *self)
   GtkWidget *content;
   EmpathyIndividualManager *mgr;
   GtkTreeSelection *selection;
+  GtkWidget *scroll;
 
   self->priv = priv;
 
@@ -263,9 +264,13 @@ empathy_invite_participant_dialog_init (EmpathyInviteParticipantDialog *self)
   g_signal_connect (selection, "changed",
       G_CALLBACK (view_selection_changed_cb), self);
 
-  gtk_box_pack_start (GTK_BOX (content), GTK_WIDGET (self->priv->view),
-      TRUE, TRUE, 6);
+  scroll = gtk_scrolled_window_new (NULL, NULL);
+
+  gtk_container_add (GTK_CONTAINER (scroll), GTK_WIDGET (self->priv->view));
+
+  gtk_box_pack_start (GTK_BOX (content), scroll, TRUE, TRUE, 6);
   gtk_widget_show (GTK_WIDGET (self->priv->view));
+  gtk_widget_show (scroll);
 
   self->priv->invite_button = gtk_dialog_add_button (dialog, _("Invite"),
       GTK_RESPONSE_ACCEPT);