Add full variant to the approximate timeout functiont

The g_timeout_add_seconds() API lacks a _full() counterpart, allowing the
setting of a destroy notification function to be invoked when the timeout
source is removed.

This patch adds g_timeout_add_seconds_full() to the public API and
reimplements g_timeout_add_seconds() as a call to g_timeout_add_seconds_full().

svn path=/trunk/; revision=5575
This commit is contained in:
Emmanuele Bassi
2007-06-18 16:55:50 +00:00
parent 7a6d2233e4
commit 00ab83b8e8
6 changed files with 92 additions and 38 deletions

View File

@@ -1,3 +1,7 @@
2007-06-18 Emmanuele Bassi <ebassi@gnome.org>
* glib/glib-sections.txt: Add g_timeout_add_seconds_full().
2007-06-17 Behdad Esfahbod <behdad@gnome.org>
* glib/tmpl/quarks.sgml:

View File

@@ -442,6 +442,7 @@ g_timeout_source_new_seconds
g_timeout_add
g_timeout_add_full
g_timeout_add_seconds
g_timeout_add_seconds_full
<SUBSECTION>
g_idle_source_new