gdatetime: Add g_date_time_source_new()

Several different codebases in GNOME want to implement wall clocks.
While we could pretty easily share a private library, it's not a
substantial amount of code, and GLib already has a lot of the
necessary system-specific detection and handling infrastructure.

Note this initial implementation just wakes up once a second in the
cancel_on_set case; we'll add the Linux-specific handling in a
subsequent commit.

https://bugzilla.gnome.org/show_bug.cgi?id=655129
This commit is contained in:
Colin Walters
2011-08-13 08:55:20 -04:00
parent 1dfe332e45
commit 1feb752996
8 changed files with 276 additions and 0 deletions

View File

@@ -1551,6 +1551,9 @@ g_date_time_to_utc
<SUBSECTION>
g_date_time_format
<SUBSECTION>
g_date_time_source_new
</SECTION>
<SECTION>