]> spindle.queued.net Git - midori/commitdiff
Set the completion text renderer to a fixed size of 2 rows
authorChristian Dywan <christian@twotoasts.de>
Sat, 11 Jul 2009 12:40:52 +0000 (14:40 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 11 Jul 2009 12:40:52 +0000 (14:40 +0200)
midori/midori-locationaction.c

index bfb43d3da36ee60a5a288172aff63cb03993f79b..c264176a11a14e92b543f4fdc24a4088c3c50e45 100644 (file)
@@ -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,