Gentoo Archives: gentoo-commits

From: "Roy Marples (uberlord)" <uberlord@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-cpp/glibmm/files: glibmm-2.14.0-date.patch
Date: Fri, 19 Oct 2007 09:27:57
Message-Id: E1Iinyr-0006Fi-FZ@stork.gentoo.org
1 uberlord 07/10/19 09:17:21
2
3 Added: glibmm-2.14.0-date.patch
4 Log:
5 GTime and time_t are equivalent for bsd, so we cannot define them both. As such we punt the deprecated function.
6 (Portage version: 2.1.3.15)
7
8 Revision Changes Path
9 1.1 dev-cpp/glibmm/files/glibmm-2.14.0-date.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-cpp/glibmm/files/glibmm-2.14.0-date.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-cpp/glibmm/files/glibmm-2.14.0-date.patch?rev=1.1&content-type=text/plain
13
14 Index: glibmm-2.14.0-date.patch
15 ===================================================================
16 diff -ur a/glib/glibmm/date.cc b/glib/glibmm/date.cc
17 --- a/glib/glibmm/date.cc 2007-08-13 11:51:09 +0100
18 +++ b/glib/glibmm/date.cc 2007-10-19 10:02:22 +0100
19 @@ -71,16 +71,6 @@
20 g_date_set_parse(&gobject_, str.c_str());
21 }
22
23 -#ifndef GLIBMM_DISABLE_DEPRECATED
24 -
25 -void Date::set_time(GTime time)
26 -{
27 - //This method, and the C function that it wraps, are deprecated.
28 - g_date_set_time(&gobject_, time);
29 -}
30 -#endif // GLIBMM_DISABLE_DEPRECATED
31 -
32 -
33 void Date::set_time(time_t timet)
34 {
35 g_date_set_time_t(&gobject_, timet);
36 diff -ur a/glib/glibmm/date.h b/glib/glibmm/date.h
37 --- a/glib/glibmm/date.h 2007-08-13 11:51:09 +0100
38 +++ b/glib/glibmm/date.h 2007-10-19 10:02:08 +0100
39 @@ -119,18 +119,6 @@
40 */
41 void set_parse (const Glib::ustring& str);
42
43 - #ifndef GLIBMM_DISABLE_DEPRECATED
44 -
45 - /** Sets the value of a date from a GTime (time_t) value.
46 - *
47 - * @param time GTime value to set.
48 - *
49 - * @deprecated Please use set_time(time_t) or set_time(const GTimeVal&).
50 - */
51 - void set_time(GTime time);
52 - #endif // GLIBMM_DISABLE_DEPRECATED
53 -
54 -
55 /** Sets the value of a date from a <type>time_t</type> value.
56 *
57 * @param timet time_t value to set
58
59
60
61 --
62 gentoo-commits@g.o mailing list