Unbreak firefox. (#654628)
This commit is contained in:
parent
242b94dff3
commit
1277ea1390
@ -0,0 +1,25 @@
|
||||
From 49766bca28bb6fc57689f6061669bb44362d694d Mon Sep 17 00:00:00 2001
|
||||
From: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
|
||||
Date: Tue, 2 Nov 2010 17:02:37 +0100
|
||||
Subject: [PATCH] notify_notification_set_image_from_pixbuf: ref the pixbuf (#633829)
|
||||
|
||||
---
|
||||
libnotify/notification.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/libnotify/notification.c b/libnotify/notification.c
|
||||
index 2d5ecd9..571eff6 100644
|
||||
--- a/libnotify/notification.c
|
||||
+++ b/libnotify/notification.c
|
||||
@@ -695,7 +695,7 @@ notify_notification_set_image_from_pixbuf (NotifyNotification *notification,
|
||||
image_len,
|
||||
TRUE,
|
||||
(GDestroyNotify) g_object_unref,
|
||||
- pixbuf));
|
||||
+ g_object_ref (pixbuf)));
|
||||
notify_notification_set_hint (notification, hint_name, value);
|
||||
}
|
||||
|
||||
--
|
||||
1.7.1
|
||||
|
@ -4,7 +4,7 @@
|
||||
Summary: Desktop notification library
|
||||
Name: libnotify
|
||||
Version: 0.7.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
URL: http://library.gnome.org/devel/notification-spec/
|
||||
Source0: http://download.gnome.org/sources/%{name}/0.7/%{name}-%{version}.tar.bz2
|
||||
License: LGPLv2+
|
||||
@ -17,6 +17,7 @@ BuildRequires: dbus-devel >= %{dbus_version}
|
||||
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
|
||||
Requires: glib2 >= %{glib2_version}
|
||||
Requires: desktop-notification-daemon
|
||||
Patch0: 0001-notify_notification_set_image_from_pixbuf-ref-the-pi.patch
|
||||
|
||||
%description
|
||||
libnotify is a library for sending desktop notifications to a notification
|
||||
@ -39,6 +40,7 @@ development of programs using %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
@ -71,6 +73,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||
%{_datadir}/gtk-doc/html/libnotify/*
|
||||
|
||||
%changelog
|
||||
* Mon Jan 3 2011 Bill Nottingham <notting@redhat.com> - 0.7.0-2
|
||||
- unbreak firefox and similar apps that free pixbufs they send to set_image_from_pixbuf (#654628)
|
||||
|
||||
* Mon Nov 1 2010 Matthias Clasen <mclasen@redhat.com> - 0.7.0-1
|
||||
- Update to 0.7.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user