From d86c0a0533a7ffaf8bc20f9d9440714683558379 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Mon, 9 Jun 2014 00:43:06 +0200 Subject: [PATCH] Another approach to setup completion window height (#86). --- src/completion.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.20.1