From 16a79ae6e4c62b20ccae251c39b0d1e673336d41 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 10 Sep 2014 18:35:36 +0200 Subject: [PATCH] background: Remove a useless horizontal size request There are three cases which affect our size calculation: - When the dialog is without a parent in the test application. - When the dialog is maximized on small screens. - When the dialog is used with an unmaximized parent. The width of the chooser is much more than half the width of the parent in the third case. So there is no point in doing it. The width that we set for the grid in the content area is actually what is useful. https://bugzilla.gnome.org/show_bug.cgi?id=736366 --- panels/background/cc-background-chooser-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/background/cc-background-chooser-dialog.c b/panels/background/cc-background-chooser-dialog.c index 6aa604db2..2ff69b53f 100644 --- a/panels/background/cc-background-chooser-dialog.c +++ b/panels/background/cc-background-chooser-dialog.c @@ -113,7 +113,7 @@ cc_background_chooser_dialog_realize (GtkWidget *widget) gint height; gtk_window_get_size (parent, &width, &height); - gtk_widget_set_size_request (GTK_WIDGET (chooser), (gint) (0.5 * width), (gint) (0.9 * height)); + gtk_widget_set_size_request (GTK_WIDGET (chooser), -1, (gint) (0.9 * height)); gtk_icon_view_set_columns (GTK_ICON_VIEW (chooser->priv->icon_view), 3); }