Fixed wrong default treeView height on gtk3.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 15 Apr 2014 20:24:33 +0000 (22:24 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 15 Apr 2014 20:24:33 +0000 (22:24 +0200)
src/completion.c

index d01207b..548e26d 100644 (file)
@@ -125,6 +125,9 @@ gboolean completion_create(GtkTreeModel *model, CompletionSelectFunc selfunc,
     gtk_tree_view_column_add_attribute(column, renderer, "text", COMPLETION_STORE_SECOND);
 #endif
 
+    /* to set the height for the treeview the tree must be realized first */
+    gtk_widget_show_all(comp.tree);
+
     /* this prevents the first item to be placed out of view if the completion
      * is shown */
     while (gtk_events_pending()) {