diff -u libnotify-0.4.5/debian/changelog libnotify-0.4.5/debian/changelog --- libnotify-0.4.5/debian/changelog +++ libnotify-0.4.5/debian/changelog @@ -1,3 +1,9 @@ +libnotify (0.4.5-1ubuntu1) karmic; urgency=low + + * ss + + -- Alexander Sack Fri, 05 Jun 2009 12:52:38 +0200 + libnotify (0.4.5-1) unstable; urgency=low [ Loic Minier ] diff -u libnotify-0.4.5/debian/control libnotify-0.4.5/debian/control --- libnotify-0.4.5/debian/control +++ libnotify-0.4.5/debian/control @@ -1,6 +1,7 @@ Source: libnotify Priority: optional -Maintainer: Andre Filipe de Assuncao e Brito +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Andre Filipe de Assuncao e Brito Build-Depends: gnome-pkg-tools (>= 0.7), cdbs (>= 0.4.41), debhelper (>= 5), only in patch2: unchanged: --- libnotify-0.4.5.orig/AUTHORS +++ libnotify-0.4.5/AUTHORS @@ -15,3 +15,4 @@ mderezynski Ed Catmur Lucas Rocha + Alexander Sack only in patch2: unchanged: --- libnotify-0.4.5.orig/configure.ac +++ libnotify-0.4.5/configure.ac @@ -42,9 +42,9 @@ dnl # dnl # CURRENT : REVISION : AGE dnl # -LT_CURRENT=2 -LT_REVISION=3 -LT_AGE=1 +LT_CURRENT=3 +LT_REVISION=0 +LT_AGE=2 LT_RELEASE=$LIBGALAGO_MAJOR_VERSION.$LIBGALAGO_MINOR_VERSION.$LIBGALAGO_MICRO_VERSION only in patch2: unchanged: --- libnotify-0.4.5.orig/libnotify/notify.c +++ libnotify-0.4.5/libnotify/notify.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -207,6 +208,31 @@ } /** + * convenience function that checks if server has a certain capability + * + * @param capability The capability to test for + + * @return TRUE if the current notification server has the capability + * otherwise FALSE. + */ +gboolean +notify_has_server_cap(const char* capability) +{ + GList *caps; + gboolean has_cap; + + g_return_val_if_fail(capability, FALSE); + + caps = notify_get_server_caps(); + has_cap = g_list_find_custom(caps, capability, strcmp) != NULL; + + g_list_foreach(caps, (GFunc)g_free, NULL); + g_list_free(caps); + + return has_cap; +} + +/** * notify_get_server_info: * @ret_name: The resulting server name. * @ret_vendor: The resulting server vendor. only in patch2: unchanged: --- libnotify-0.4.5.orig/libnotify/notify.h +++ libnotify-0.4.5/libnotify/notify.h @@ -68,6 +68,16 @@ GList *notify_get_server_caps(void); /** + * convenience function that checks if server has a certain capability + * + * @param capability The capability to test for + + * @return TRUE if the current notification server has the capability + * otherwise FALSE. + */ +gboolean notify_has_server_cap(const char* capability); + +/** * Returns the server notification information. * * The strings returned must be freed.