From 48c62d0ec64f4b8a387acb2965316b515d22e04b Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 11 Jul 2009 14:40:52 +0200 Subject: [PATCH] Set the completion text renderer to a fixed size of 2 rows --- midori/midori-locationaction.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index bfb43d3d..c264176a 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -954,6 +954,9 @@ midori_location_action_completion_init (MidoriLocationAction* location_action, midori_location_entry_render_pixbuf_cb, NULL, NULL); renderer = gtk_cell_renderer_text_new (); + gtk_cell_renderer_set_fixed_size (renderer, 1, -1); + gtk_cell_renderer_text_set_fixed_height_from_font ( + GTK_CELL_RENDERER_TEXT (renderer), 2); gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (completion), renderer, TRUE); gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (completion), renderer, midori_location_entry_render_text_cb,