notification.h: Add deprecation guards

This commit is contained in:
Javier Jardón 2011-10-09 13:08:53 -04:00
parent 34aa27f600
commit 2fe1748295
2 changed files with 6 additions and 3 deletions

View File

@ -25,7 +25,7 @@ SCANGOBJ_OPTIONS=
# Extra options to supply to gtkdoc-scan. # Extra options to supply to gtkdoc-scan.
# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED" # e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
SCAN_OPTIONS= SCAN_OPTIONS=--deprecated-guards="LIBNOTIFY_DISABLE_DEPRECATED"
# Extra options to supply to gtkdoc-mkdb. # Extra options to supply to gtkdoc-mkdb.
# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml # e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml

View File

@ -132,11 +132,13 @@ void notify_notification_set_category (NotifyNotificatio
void notify_notification_set_urgency (NotifyNotification *notification, void notify_notification_set_urgency (NotifyNotification *notification,
NotifyUrgency urgency); NotifyUrgency urgency);
void notify_notification_set_icon_from_pixbuf (NotifyNotification *notification,
GdkPixbuf *icon);
void notify_notification_set_image_from_pixbuf (NotifyNotification *notification, void notify_notification_set_image_from_pixbuf (NotifyNotification *notification,
GdkPixbuf *pixbuf); GdkPixbuf *pixbuf);
#ifndef LIBNOTIFY_DISABLE_DEPRECATED
void notify_notification_set_icon_from_pixbuf (NotifyNotification *notification,
GdkPixbuf *icon);
void notify_notification_set_hint_int32 (NotifyNotification *notification, void notify_notification_set_hint_int32 (NotifyNotification *notification,
const char *key, const char *key,
gint value); gint value);
@ -160,6 +162,7 @@ void notify_notification_set_hint_byte_array (NotifyNotificatio
const char *key, const char *key,
const guchar *value, const guchar *value,
gsize len); gsize len);
#endif
void notify_notification_set_hint (NotifyNotification *notification, void notify_notification_set_hint (NotifyNotification *notification,
const char *key, const char *key,