[gaim-migrate @ 6668]

Thu, 17 Jul 2003 22:09:31 +0000

author
Christian Hammond <chipx86@chipx86.com>
date
Thu, 17 Jul 2003 22:09:31 +0000
changeset 6182
d9f28eca828a
parent 6181
656ccac0ff02
child 6183
61aee2a21098

[gaim-migrate @ 6668]
Added a function for causing one iteration through the "gaim mainloop,"
which is just a nice abstractive (?) way of causing one iteration through
the glib mainloop. All non-glib/gtk UIs must call this in a timer or
somewhere.

src/core.c file | annotate | diff | comparison | revisions
src/core.h file | annotate | diff | comparison | revisions
--- a/src/core.c	Thu Jul 17 20:49:40 2003 +0000
+++ b/src/core.c	Thu Jul 17 22:09:31 2003 +0000
@@ -120,6 +120,12 @@
 	_core = NULL;
 }
 
+void
+gaim_core_mainloop_iteration(void)
+{
+	g_main_context_iteration(g_main_context_default(), FALSE);
+}
+
 const char *
 gaim_core_get_ui(void)
 {
--- a/src/core.h	Thu Jul 17 20:49:40 2003 +0000
+++ b/src/core.h	Thu Jul 17 22:09:31 2003 +0000
@@ -53,6 +53,16 @@
 void gaim_core_quit(void);
 
 /**
+ * Iterates once through the gaim mainloop.
+ *
+ * This is in actuality a wrapper around glib's mainloop iteration
+ * function, but provides a nice, healthy level of abstraction.
+ *
+ * All UIs not using glib must call this in a timer.
+ */
+void gaim_core_mainloop_iteration(void);
+
+/**
  * Returns the ID of the UI that is using the core.
  *
  * @return The ID of the UI that is currently using the core.

mercurial