[gnome-control-center] background: Remove a useless horizontal size request
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Remove a useless horizontal size request
- Date: Wed, 10 Sep 2014 16:51:56 +0000 (UTC)
commit 16a79ae6e4c62b20ccae251c39b0d1e673336d41
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Sep 10 18:35:36 2014 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/cc-background-chooser-dialog.c
b/panels/background/cc-background-chooser-dialog.c
index 6aa604d..2ff69b5 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]