[gnome-control-center] region: Avoid starting with a gap at the bottom of the input chooser



commit 4bb33fd878b4dc65d0368bffa1ab4b642148d97b
Author: Rui Matos <tiagomatos gmail com>
Date:   Tue May 30 18:24:11 2017 +0200

    region: Avoid starting with a gap at the bottom of the input chooser
    
    We can simply let the natural size request determine the dialog's
    height.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=783058

 panels/region/cc-input-chooser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c
index bbe9bdf..a5156cc 100644
--- a/panels/region/cc-input-chooser.c
+++ b/panels/region/cc-input-chooser.c
@@ -1114,7 +1114,7 @@ cc_input_chooser_new (GtkWindow    *main_window,
 
   /* Try to come up with a sensible size */
   gtk_window_get_size (main_window, &width, &height);
-  gtk_widget_set_size_request (chooser, width * MAIN_WINDOW_WIDTH_RATIO, height);
+  gtk_widget_set_size_request (chooser, width * MAIN_WINDOW_WIDTH_RATIO, -1);
   gtk_window_set_resizable (GTK_WINDOW (chooser), TRUE);
 
   gtk_window_set_transient_for (GTK_WINDOW (chooser), main_window);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]