[Xfce4-commits] <libxfce4util:master> Fix build with deprecation and document it.
Nick Schermer
noreply at xfce.org
Sat Jun 12 19:52:01 CEST 2010
Updating branch refs/heads/master
to 084a9dd18be3f46a1b74a6ec7bada740f13791d5 (commit)
from 807cd08c78a449a67119944ff79d40394030772b (commit)
commit 084a9dd18be3f46a1b74a6ec7bada740f13791d5
Author: Nick Schermer <nick at xfce.org>
Date: Sat Jun 12 19:50:31 2010 +0200
Fix build with deprecation and document it.
docs/Makefile.am | 1 +
docs/tmpl/xfce-desktopentry.sgml | 2 ++
libxfce4util/xfce-desktopentry.c | 12 ++++++++++++
3 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 91427f3..65dd3c8 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -44,6 +44,7 @@ content_files = \
GTKDOC_CFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
+ -DLIBXFCE4UTIL_COMPILATION \
$(CPPFLAGS) \
$(GOBJECT_CFLAGS) \
$(GTK_DOC_EXTRA_CFLAGS)
diff --git a/docs/tmpl/xfce-desktopentry.sgml b/docs/tmpl/xfce-desktopentry.sgml
index 2e016c3..9310f9a 100644
--- a/docs/tmpl/xfce-desktopentry.sgml
+++ b/docs/tmpl/xfce-desktopentry.sgml
@@ -26,6 +26,8 @@ XfceDesktopEntry implementation and should never be accessed directly.
Instead, you should use the functions listed below.
</para>
+ at Deprecated: 4.8: Use #XfceRc instead.
+
<!-- ##### FUNCTION xfce_desktop_entry_new ##### -->
<para>
diff --git a/libxfce4util/xfce-desktopentry.c b/libxfce4util/xfce-desktopentry.c
index 3548d33..c1afbcf 100644
--- a/libxfce4util/xfce-desktopentry.c
+++ b/libxfce4util/xfce-desktopentry.c
@@ -374,6 +374,8 @@ xfce_desktop_entry_parse (XfceDesktopEntry *desktop_entry)
* Return value: newly created #XfceDesktopEntry or NULL if something goes wrong.
*
* Since: 4.2
+ *
+ * Deprecated: 4.8: Use #XfceRc instead.
**/
XfceDesktopEntry*
xfce_desktop_entry_new (const gchar *file,
@@ -427,6 +429,8 @@ xfce_desktop_entry_new (const gchar *file,
* Return value: newly created #XfceDesktopEntry or NULL if something goes wrong.
*
* Since: 4.2
+ *
+ * Deprecated: 4.8: Use #XfceRc instead.
**/
XfceDesktopEntry*
xfce_desktop_entry_new_from_data (const gchar *data,
@@ -471,6 +475,8 @@ xfce_desktop_entry_new_from_data (const gchar *data,
* return value should be considered read-only and must not be freed
* by the caller.
* Since: 4.2
+ *
+ * Deprecated: 4.8: Use #XfceRc instead.
**/
G_CONST_RETURN gchar*
xfce_desktop_entry_get_file (XfceDesktopEntry *desktop_entry)
@@ -495,6 +501,8 @@ xfce_desktop_entry_get_file (XfceDesktopEntry *desktop_entry)
* Return value: TRUE on success, FALSE on failure. @value_return must be freed.
*
* Since: 4.2
+ *
+ * Deprecated: 4.8: Use #XfceRc instead.
**/
gboolean
xfce_desktop_entry_get_string (XfceDesktopEntry *desktop_entry,
@@ -534,6 +542,8 @@ xfce_desktop_entry_get_string (XfceDesktopEntry *desktop_entry,
* Return value: TRUE on success, FALSE on failure.
*
* Since: 4.2
+ *
+ * Deprecated: 4.8: Use #XfceRc instead.
**/
gboolean
xfce_desktop_entry_get_int (XfceDesktopEntry *desktop_entry,
@@ -571,6 +581,8 @@ xfce_desktop_entry_get_int (XfceDesktopEntry *desktop_entry,
* Return Value: %TRUE if there is a translated key, %FALSE otherwise.
*
* Since: 4.3
+ *
+ * Deprecated: 4.8: Use #XfceRc instead.
**/
gboolean
xfce_desktop_entry_has_translated_entry (XfceDesktopEntry *desktop_entry,
More information about the Xfce4-commits
mailing list