[gimp] libgimpwidgets: set a minimum width on GimpColorProfileComboBox



commit adaa67548e2c217d1aac64709bc30730edc7676f
Author: Michael Natterer <mitch gimp org>
Date:   Sun May 22 18:44:59 2016 +0200

    libgimpwidgets: set a minimum width on GimpColorProfileComboBox
    
    so ellipsation doesn't shrink the entire text away in narrow dialogs.

 libgimpwidgets/gimpcolorprofilecombobox.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgimpwidgets/gimpcolorprofilecombobox.c b/libgimpwidgets/gimpcolorprofilecombobox.c
index 40e9b37..867fa8d 100644
--- a/libgimpwidgets/gimpcolorprofilecombobox.c
+++ b/libgimpwidgets/gimpcolorprofilecombobox.c
@@ -139,7 +139,8 @@ gimp_color_profile_combo_box_init (GimpColorProfileComboBox *combo_box)
   GtkCellRenderer *cell = gtk_cell_renderer_text_new ();
 
   g_object_set (cell,
-                "ellipsize", PANGO_ELLIPSIZE_END,
+                "width-chars", 42,
+                "ellipsize",   PANGO_ELLIPSIZE_END,
                 NULL);
 
 


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