Revert "Show the completion list after the hight was set." (#86)
authorDaniel Carl <danielcarl@gmx.de>
Sun, 8 Jun 2014 21:10:09 +0000 (23:10 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sun, 8 Jun 2014 21:10:09 +0000 (23:10 +0200)
src/completion.c

index 548e26d..562fb8c 100644 (file)
@@ -130,6 +130,7 @@ gboolean completion_create(GtkTreeModel *model, CompletionSelectFunc selfunc,
 
     /* 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();
     }
@@ -156,8 +157,6 @@ gboolean completion_create(GtkTreeModel *model, CompletionSelectFunc selfunc,
     comp.active = -1;
     completion_next(back);
 
-    gtk_widget_show_all(comp.win);
-
     return true;
 }