summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2014-06-09 00:43:06 +0200
committerDaniel Carl <danielcarl@gmx.de>2014-06-09 00:46:58 +0200
commitd86c0a0533a7ffaf8bc20f9d9440714683558379 (patch)
treedda554ea481690702f99626c6d88fa58745e6c3a
parent665a52c564399e3dac8979119500804882ab64d7 (diff)
Another approach to setup completion window height (#86).
-rw-r--r--src/completion.c5
1 files 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;
}