[phat] Fix deprecated gdk_pixbuf_unref

Brendan Jones bsjones at fedoraproject.org
Tue Jul 24 22:15:10 UTC 2012


commit 4d0449511e87f1ed1e4d89315b51535faf9abcf2
Author: Brendan Jones <brendan.jones.it at gmail.com>
Date:   Wed Jul 25 00:14:52 2012 +0200

    Fix deprecated gdk_pixbuf_unref

 phat-gdk-unref.patch |   12 ++++++++++++
 phat.spec            |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/phat-gdk-unref.patch b/phat-gdk-unref.patch
new file mode 100644
index 0000000..c049dcb
--- /dev/null
+++ b/phat-gdk-unref.patch
@@ -0,0 +1,12 @@
+diff -Nurp phat-0.4.1.orig/phat/phatknob.c phat-0.4.1/phat/phatknob.c
+--- phat-0.4.1.orig/phat/phatknob.c	2007-04-24 01:08:27.000000000 +0200
++++ phat-0.4.1/phat/phatknob.c	2012-07-25 00:00:09.734802371 +0200
+@@ -347,7 +347,7 @@ static void phat_knob_destroy(GtkObject
+     }
+ 
+     if (knob->pixbuf) {
+-        gdk_pixbuf_unref(knob->pixbuf);
++        g_object_unref(knob->pixbuf);
+         knob->pixbuf = NULL;
+     }
+ 
diff --git a/phat.spec b/phat.spec
index e645707..d3dad8a 100644
--- a/phat.spec
+++ b/phat.spec
@@ -1,7 +1,7 @@
 Summary: A collection of GTK+ widgets useful for audio applications
 Name:          phat
 Version:       0.4.1
-Release:       8%{?dist}
+Release:       9%{?dist}
 License:       GPLv2+
 Group:         System Environment/Libraries
 URL:           http://phat.berlios.de/
@@ -9,6 +9,7 @@ Source0:       http://download.berlios.de/%{name}/%{name}-%{version}.tar.gz
 # Remove unused variables - to be submitted upstream
 Patch0:        phat-unused-but-set-variable.patch
 Patch1:        phat-fix-fsf-address.patch
+Patch2:        phat-gdk-unref.patch
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: gtk2-devel 
@@ -39,6 +40,7 @@ Documentation for the PHAT Audio Toolkit.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %configure --enable-debug --disable-static
@@ -74,6 +76,9 @@ rm -rf %{buildroot}
 %{_datadir}/gtk-doc/html/%{name}
 
 %changelog
+* Wed Jul 25 2012 Brendan Jones <brendan.jones.it at gmail.com> 0.4.1-9
+- Fix deprecated gdk_pixbuf_unref
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.1-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list