Permalink
Browse files

Drop support for libnotify before 0.7

  • Loading branch information...
sardemff7 committed Aug 31, 2012
1 parent fcb35cd commit b59db6f77dc6df92740dbdbefc7a82c871d1fa83
Showing with 1 addition and 38 deletions.
  1. +0 −1 Makefile.am
  2. +1 −2 configure.ac
  3. +0 −30 src/libnotify-compat.h
  4. +0 −5 src/purple-libnotify+-utils.c
View
@@ -14,7 +14,6 @@ AM_CFLAGS += \
plugin_LTLIBRARIES = purple-libnotify+.la
purple_libnotify__la_SOURCES = \
src/libnotify-compat.h \
src/purple-libnotify+-frames.h \
src/purple-libnotify+-utils.h \
src/purple-libnotify+-common.h \
View
@@ -34,8 +34,7 @@ PKG_CHECK_MODULES(GLIB, glib-2.0)
#
# Check for libnotify
#
PKG_CHECK_MODULES(NOTIFY, libnotify >= 0.5.0)
PKG_CHECK_EXISTS(NOTIFY_06, libnotify >= 0.6.0, [AC_DEFINE([HAVE_NOTIFY_06], [1], [libnotify >= 0.6])], [])
PKG_CHECK_MODULES(NOTIFY, libnotify >= 0.7.0)
#
# Check for gdk-pixbuf
View
@@ -1,30 +0,0 @@
/*
* eventd - Small daemon to act on remote or local events
*
* Copyright © 2011 Quentin "Sardem FF7" Glidic
*
* This file is part of eventd.
*
* eventd is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* eventd is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with eventd. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __EVENTD_PLUGINS_NOTIFY_COMPAT_H__
#define __EVENTD_PLUGINS_NOTIFY_COMPAT_H__
#if ! NOTIFY_CHECK_VERSION(0,7,0)
#define notify_notification_new(summary, body, icon) notify_notification_new(summary, body, icon, NULL)
#endif
#endif /* __EVENTD_PLUGINS_NOTIFY_COMPAT_H__ */
@@ -21,7 +21,6 @@
#include "purple-libnotify+-common.h"
#include <libnotify/notify.h>
#include "libnotify-compat.h"
#include <purple-events.h>
@@ -137,11 +136,7 @@ _notify_plus_send_notification_internal_v(
notify_notification_set_timeout(notification, timeout);
if ( notify_plus_data.set_transcient && ( ! purple_prefs_get_bool("/plugins/core/libnotify+/no-transcient") ) )
#if GLIB_CHECK_VERSION(2, 26, 0) && HAVE_NOTIFY_06
notify_notification_set_hint(notification, "transcient", g_variant_new_byte(1));
#else
notify_notification_set_hint_byte(notification, "transcient", 1);
#endif
if ( image != NULL )
notify_notification_set_image_from_pixbuf(notification, image);

0 comments on commit b59db6f

Please sign in to comment.