Index: panel-run-dialog.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/panel-run-dialog.c,v
retrieving revision 1.23
diff -u -r1.23 panel-run-dialog.c
--- panel-run-dialog.c	12 Feb 2004 09:40:00 -0000	1.23
+++ panel-run-dialog.c	3 Mar 2004 14:55:55 -0000
@@ -1112,18 +1112,25 @@
 
 	for (i = 0; pathv [i]; i++)
 		panel_run_dialog_fill_executables_from (dialog, pathv[i]);
-	
+
 	g_strfreev (pathv);
 }
 
+static gboolean
+panel_run_dialog_ensure_completion_idle_handler (PanelRunDialog *dialog)
+{
+	panel_run_dialog_fill_executables (dialog);
+	g_completion_add_items (dialog->completion, dialog->executables);
+
+	return FALSE;
+}
+
 static void
 panel_run_dialog_ensure_completion (PanelRunDialog *dialog)
 {
 	if (!dialog->completion) {
 		dialog->completion = g_completion_new (NULL);
-		panel_run_dialog_fill_executables (dialog);
-
-		g_completion_add_items (dialog->completion, dialog->executables);
+		g_idle_add ((GSourceFunc) panel_run_dialog_ensure_completion_idle_handler, dialog);
 	}
 }
 
