[devhelp] Make text in search combo ellipsize because otherwise it is too big



commit b39f4e2d8510483e2f22ce7d2b71f462e394f3f0
Author: Johannes Schmid <jhs gnome org>
Date:   Wed Jan 5 19:37:03 2011 +0100

    Make text in search combo ellipsize because otherwise it is too big
    
    Comboboxes expand to size of the biggest item since recent gtk+ changes. This
    is annoying especially for anjuta integration because the pane gets way to big.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=638761

 src/dh-search.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/dh-search.c b/src/dh-search.c
index 96c49f4..f292f4d 100644
--- a/src/dh-search.c
+++ b/src/dh-search.c
@@ -959,6 +959,7 @@ search_combo_create (DhSearch *search)
                                               NULL, NULL);
 
         cell = gtk_cell_renderer_text_new ();
+        g_object_set (cell, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
         gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (priv->book_combo),
                                     cell,
                                     TRUE);



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