Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
xchat-gnome
xchat-gnome-0.26.1-libnotify.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xchat-gnome-0.26.1-libnotify.patch of Package xchat-gnome
From 557c940ba6e5f181f1db50059aa9ce107f10cb2e Mon Sep 17 00:00:00 2001 From: Ritesh Khadgaray <khadgaray@gmail.com> Date: Mon, 06 Dec 2010 18:03:02 +0000 Subject: libnotify has removed the ability to attach notifications to widgets or positions update notify_notification_new call --- diff --git a/plugins/notify-osd/notify-osd.c b/plugins/notify-osd/notify-osd.c index cee221f..c7e8f77 100644 --- a/plugins/notify-osd/notify-osd.c +++ b/plugins/notify-osd/notify-osd.c @@ -67,7 +67,12 @@ add_notify (char *summary, char *message) gchar *escaped; escaped = g_markup_escape_text (message, strlen(message)); +#if !NOTIFY_CHECK_VERSION(0,7,0) notify = notify_notification_new (summary, escaped, NULL, NULL); +#else + notify = notify_notification_new (summary, escaped, NULL); +#endif + notify_notification_set_urgency (notify, NOTIFY_URGENCY_NORMAL); notify_notification_set_icon_from_pixbuf (notify, notify_icon); if (!notify_notification_show (notify, &error)) { -- cgit v0.9 From 3d69d88f9f24fc63335ee2a4da6af0d9595510dd Mon Sep 17 00:00:00 2001 From: Frederic Crozat <fcrozat@novell.com> Date: Fri, 22 Apr 2011 14:31:12 +0200 Subject: [PATCH] Fix build when using libnotify < 0.7 --- plugins/notify-osd/notify-osd.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/plugins/notify-osd/notify-osd.c b/plugins/notify-osd/notify-osd.c index 9582529..c52c8fd 100644 --- a/plugins/notify-osd/notify-osd.c +++ b/plugins/notify-osd/notify-osd.c @@ -27,6 +27,10 @@ #include "xchat-plugin.h" #include "xg-plugin.h" +#ifndef NOTIFY_CHECK_VERSION +#define NOTIFY_CHECK_VERSION(x,y,z) 0 +#endif + #define NOTIFY_OSD_NAME _("On-screen display") #define NOTIFY_OSD_VERSION "0.1" #define NOTIFY_OSD_DESCRIPTION _("Pops up notification of important messages when XChat-GNOME doesn't have the focus") -- 1.7.3.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor