[tracker] libtracker-miner: ignore next update is deprecated
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: ignore next update is deprecated
- Date: Thu, 15 Dec 2011 16:38:30 +0000 (UTC)
commit f218a368db952f4ba306c7116900724360d5c8e5
Author: Aleksander Morgado <aleksander lanedo com>
Date: Thu Dec 15 16:55:05 2011 +0100
libtracker-miner: ignore next update is deprecated
Fix deprecation comment and include the method between guards.
docs/reference/libtracker-miner/Makefile.am | 2 +-
src/libtracker-miner/tracker-miner-manager.c | 5 ++++-
src/libtracker-miner/tracker-miner-manager.h | 9 ++++++---
3 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/docs/reference/libtracker-miner/Makefile.am b/docs/reference/libtracker-miner/Makefile.am
index 9a6c5be..3d046f6 100644
--- a/docs/reference/libtracker-miner/Makefile.am
+++ b/docs/reference/libtracker-miner/Makefile.am
@@ -9,7 +9,7 @@ DOC_MODULE=libtracker-miner
DOC_MAIN_SGML_FILE=libtracker-miner-docs.sgml
# Extra options to supply to gtkdoc-scan
-# SCAN_OPTIONS=--deprecated-guards="G_GNUC_DEPRECATED"
+SCAN_OPTIONS=--deprecated-guards="TRACKER_DISABLE_DEPRECATED"
# Extra options to pass to gtkdoc-scangobj
# SCANGOBJ_OPTIONS=--type-init-func="gtk_type_init(0)"
diff --git a/src/libtracker-miner/tracker-miner-manager.c b/src/libtracker-miner/tracker-miner-manager.c
index bc3ebd2..d360b7e 100644
--- a/src/libtracker-miner/tracker-miner-manager.c
+++ b/src/libtracker-miner/tracker-miner-manager.c
@@ -1339,6 +1339,7 @@ tracker_miner_manager_get_description (TrackerMinerManager *manager,
return NULL;
}
+#ifndef TRACKER_DISABLE_DEPRECATED
/**
* tracker_miner_manager_ignore_next_update:
@@ -1355,7 +1356,7 @@ tracker_miner_manager_get_description (TrackerMinerManager *manager,
*
* Since: 0.8
*
- * Deprecated since 0.12
+ * Deprecated: 0.12
**/
gboolean
tracker_miner_manager_ignore_next_update (TrackerMinerManager *manager,
@@ -1395,6 +1396,8 @@ tracker_miner_manager_ignore_next_update (TrackerMinerManager *manager,
return TRUE;
}
+#endif /* TRACKER_DISABLE_DEPRECATED */
+
/**
* tracker_miner_manager_error_quark:
*
diff --git a/src/libtracker-miner/tracker-miner-manager.h b/src/libtracker-miner/tracker-miner-manager.h
index 83cd3b9..8e25907 100644
--- a/src/libtracker-miner/tracker-miner-manager.h
+++ b/src/libtracker-miner/tracker-miner-manager.h
@@ -124,9 +124,6 @@ gboolean tracker_miner_manager_get_status (TrackerMinerManag
gchar **status,
gdouble *progress,
gint *remaining_time);
-gboolean tracker_miner_manager_ignore_next_update (TrackerMinerManager *manager,
- const gchar *miner,
- const gchar **urls);
const gchar * tracker_miner_manager_get_display_name (TrackerMinerManager *manager,
const gchar *miner);
const gchar * tracker_miner_manager_get_description (TrackerMinerManager *manager,
@@ -139,6 +136,12 @@ gboolean tracker_miner_manager_index_file (TrackerMinerMana
GFile *file,
GError **error);
+#ifndef TRACKER_DISABLE_DEPRECATED
+gboolean tracker_miner_manager_ignore_next_update (TrackerMinerManager *manager,
+ const gchar *miner,
+ const gchar **urls) G_GNUC_DEPRECATED;
+#endif /* TRACKER_DISABLE_DEPRECATED */
+
G_END_DECLS
#endif /* __LIBTRACKER_MINER_MANAGER_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]