[yelp] [yelp-location-entry] Prevent GTK+ from messing up height of completion



commit d3e64428c7e5b01f742a6994e661445319920496
Author: Shaun McCance <shaunm gnome org>
Date:   Thu Apr 1 12:31:15 2010 -0500

    [yelp-location-entry] Prevent GTK+ from messing up height of completion

 libyelp/yelp-location-entry.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libyelp/yelp-location-entry.c b/libyelp/yelp-location-entry.c
index 4cec1e5..a25bcbb 100644
--- a/libyelp/yelp-location-entry.c
+++ b/libyelp/yelp-location-entry.c
@@ -495,6 +495,8 @@ yelp_location_entry_set_completion_model (YelpLocationEntry *entry,
                                         GTK_CELL_RENDERER (cells->data),
                                         (GtkCellLayoutDataFunc) cell_set_completion_text_cell,
                                         entry, NULL);
+    /* We use multi-line text, and GTK+ gets heights wrong without this. */
+    gtk_cell_renderer_text_set_fixed_height_from_font (GTK_CELL_RENDERER_TEXT (cells->data), 2);
     g_list_free (cells);
 
     icon_cell = gtk_cell_renderer_pixbuf_new ();



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