[glibmm] Date: set_time(): Use g_date_set_time_t() instead of g_date_set_time().
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Date: set_time(): Use g_date_set_time_t() instead of g_date_set_time().
- Date: Thu, 13 Oct 2011 20:21:51 +0000 (UTC)
commit b5d3599d10f3acf84d23316c5c6ad65964c82e61
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Thu Oct 13 16:20:37 2011 -0400
Date: set_time(): Use g_date_set_time_t() instead of g_date_set_time().
* glib/src/date.ccg: The latter function is deprecated. This fixes
the build with the master branch of glib with deprecations disabled
though there's one small error related to the Threads discussion on
the mailing list that will still have to be looked at.
ChangeLog | 9 +++++++++
glib/src/date.ccg | 2 +-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 21d1fdc..7d7288b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2011-10-13 Josà Alburquerque <jaalburqu svn gnome org>
+ Date: set_time(): Use g_date_set_time_t() instead of g_date_set_time().
+
+ * glib/src/date.ccg: The latter function is deprecated. This fixes
+ the build with the master branch of glib with deprecations disabled
+ though there's one small error related to the Threads discussion on
+ the mailing list that will still have to be looked at.
+
+2011-10-13 Josà Alburquerque <jaalburqu svn gnome org>
+
DBusMethodInvocation: Add UnixFDList return_value() method overload.
* gio/src/dbusmethodinvocation.hg: Add the method overload.
diff --git a/glib/src/date.ccg b/glib/src/date.ccg
index 75ff144..507c703 100644
--- a/glib/src/date.ccg
+++ b/glib/src/date.ccg
@@ -87,7 +87,7 @@ _DEPRECATE_IFDEF_START
void Date::set_time(GTime time)
{
//This method, and the C function that it wraps, are deprecated.
- g_date_set_time(&gobject_, time);
+ g_date_set_time_t(&gobject_, static_cast<time_t>(time));
}
#endif //GLIBMM_HAVE_C_STD_TIME_T_IS_NOT_INT32
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]