diff src/core.c @ 7082:25a616f16b6c

[gaim-migrate @ 7647] Added more core wrappers for the glib mainloops, and replaced the last GTK+ code in OSCAR with them. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 30 Sep 2003 22:55:22 +0000
parents feb3d21a7794
children 643cbc9a6035
line wrap: on
line diff
--- a/src/core.c	Tue Sep 30 22:49:00 2003 +0000
+++ b/src/core.c	Tue Sep 30 22:55:22 2003 +0000
@@ -150,12 +150,25 @@
 	return VERSION;
 }
 
+gboolean
+gaim_core_mainloop_events_pending(void)
+{
+	return g_main_context_pending(g_main_context_default());
+}
+
 void
 gaim_core_mainloop_iteration(void)
 {
 	g_main_context_iteration(g_main_context_default(), FALSE);
 }
 
+void
+gaim_core_mainloop_finish_events(void)
+{
+	while (gaim_core_mainloop_events_pending())
+		gaim_core_mainloop_iteration();
+}
+
 const char *
 gaim_core_get_ui(void)
 {