summaryrefslogtreecommitdiff
path: root/panels/online-accounts/cc-online-accounts-add-account-dialog.c
diff options
context:
space:
mode:
authorMarco Barisione <marco.barisione@collabora.co.uk>2013-08-15 13:55:45 +0100
committerMarco Barisione <marco.barisione@collabora.co.uk>2013-08-22 15:27:40 +0100
commit58669c7d4d87604d1d1ba98a8436c8b1373cb0ca (patch)
tree8656080230b4c1d5c2cee7c731eda9030e716d14 /panels/online-accounts/cc-online-accounts-add-account-dialog.c
parent570611752e1bf1a0cf01f2581ec03525381066bd (diff)
downloadgnome-control-center-58669c7d4d87604d1d1ba98a8436c8b1373cb0ca.tar.gz
online-accounts: make the list boxes in "Other" expand vertically
https://bugzilla.gnome.org/show_bug.cgi?id=706148
Diffstat (limited to 'panels/online-accounts/cc-online-accounts-add-account-dialog.c')
-rw-r--r--panels/online-accounts/cc-online-accounts-add-account-dialog.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/panels/online-accounts/cc-online-accounts-add-account-dialog.c b/panels/online-accounts/cc-online-accounts-add-account-dialog.c
index df4dd5978..d2eeb7e2e 100644
--- a/panels/online-accounts/cc-online-accounts-add-account-dialog.c
+++ b/panels/online-accounts/cc-online-accounts-add-account-dialog.c
@@ -179,6 +179,7 @@ add_account_dialog_create_provider_ui (GoaPanelAddAccountDialog *add_account,
GtkListBox *list_box)
{
GIcon *icon;
+ GList *children;
GtkWidget *row;
GtkWidget *row_grid;
GtkWidget *image;
@@ -205,6 +206,21 @@ add_account_dialog_create_provider_ui (GoaPanelAddAccountDialog *add_account,
name = goa_provider_get_provider_name (provider, NULL);
}
+ children = gtk_container_get_children (GTK_CONTAINER (list_box));
+ if (children != NULL)
+ {
+ /* FIXME: Ideally we want the list boxes to use as much space as
+ * it's available to try to show all the content, but GtkScrolledView
+ * ignores its child's natural size,
+ * see https://bugzilla.gnome.org/show_bug.cgi?id=660654
+ * For now we just make list boxes with multiple children expand as
+ * the result is quite similar. */
+ GtkWidget *sw;
+ sw = gtk_widget_get_parent (GTK_WIDGET (list_box));
+ gtk_widget_set_vexpand (sw, TRUE);
+ g_list_free (children);
+ }
+
gtk_container_add (GTK_CONTAINER (list_box), row);
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);