# HG changeset patch # User Christian Hammond # Date 1056352170 0 # Node ID ac4dd1d0ee39eb9b6fbf1b18dc81ef36bb9fade4 # Parent 209cae24a51d9ca42d13deba9555c5bedc69a478 [gaim-migrate @ 6388] Moved the gtk main loop stuff over to glib's. committer: Tailor Script diff -r 209cae24a51d -r ac4dd1d0ee39 src/blist.c --- 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) {