From: Daniel Carl Date: Sun, 8 Jun 2014 22:43:06 +0000 (+0200) Subject: Another approach to setup completion window height (#86). X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=d86c0a0533a7ffaf8bc20f9d9440714683558379;p=vimb.git Another approach to setup completion window height (#86). --- diff --git a/src/completion.c b/src/completion.c index 562fb8c..0876d74 100644 --- a/src/completion.c +++ b/src/completion.c @@ -126,11 +126,10 @@ gboolean completion_create(GtkTreeModel *model, CompletionSelectFunc selfunc, #endif /* to set the height for the treeview the tree must be realized first */ - gtk_widget_show_all(comp.tree); + gtk_widget_show(comp.tree); /* this prevents the first item to be placed out of view if the completion * is shown */ - gtk_widget_show_all(comp.win); while (gtk_events_pending()) { gtk_main_iteration(); } @@ -157,6 +156,8 @@ gboolean completion_create(GtkTreeModel *model, CompletionSelectFunc selfunc, comp.active = -1; completion_next(back); + gtk_widget_show(comp.win); + return true; }