[sushi/wip/cosimoc/no-clutter: 11/36] font-widget: don't force a minimum size



commit 5ad4b80150b1603251009340d5fa3c6ae6e3c1ed
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Apr 3 12:37:59 2017 -0700

    font-widget: don't force a minimum size

 src/libsushi/sushi-font-widget.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libsushi/sushi-font-widget.c b/src/libsushi/sushi-font-widget.c
index 59313a8..fe2015c 100644
--- a/src/libsushi/sushi-font-widget.c
+++ b/src/libsushi/sushi-font-widget.c
@@ -554,7 +554,8 @@ sushi_font_widget_get_preferred_width (GtkWidget *drawing_area,
 
   sushi_font_widget_size_request (drawing_area, &width, NULL, NULL);
 
-  *minimum_width = *natural_width = width;
+  *minimum_width = 0;
+  *natural_width = width;
 }
 
 static void


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