changeset 5947:ac4dd1d0ee39

[gaim-migrate @ 6388] Moved the gtk main loop stuff over to glib's. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 23 Jun 2003 07:09:30 +0000
parents 209cae24a51d
children 1bebb8345bde
files src/blist.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/blist.c	Mon Jun 23 06:59:54 2003 +0000
+++ b/src/blist.c	Mon Jun 23 07:09:30 2003 +0000
@@ -1635,6 +1635,8 @@
 			g_free(msg);
 		}
 	} else if(g_list_length(gaim_accounts_get_all())) {
+		GMainContext *ctx;
+
 		/* rob wants to inform the user that their buddy lists are
 		 * being converted */
 		msg = g_strdup_printf(_("Gaim is converting your old buddy lists "
@@ -1644,8 +1646,10 @@
 		g_free(msg);
 
 		/* now, let gtk actually display the dialog before we start anything */
-		while(gtk_events_pending())
-			gtk_main_iteration();
+		ctx = g_main_context_default();
+
+		while(g_main_context_pending(ctx))
+			g_main_context_iteration(ctx, FALSE);
 
 		/* read in the old lists, then save to the new format */
 		for(accts = gaim_accounts_get_all(); accts; accts = accts->next) {