From: Daniel Carl Date: Tue, 15 Apr 2014 20:24:33 +0000 (+0200) Subject: Fixed wrong default treeView height on gtk3. X-Git-Url: https://git.owens.tech/about.html/about.html/git?a=commitdiff_plain;h=34b3aba468825063b53f75692107d75bb15862d0;p=vimb.git Fixed wrong default treeView height on gtk3. --- diff --git a/src/completion.c b/src/completion.c index d01207b..548e26d 100644 --- a/src/completion.c +++ b/src/completion.c @@ -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()) {