Add gtk-2.18 compatibility patch

This commit is contained in:
Orcan Ogetbil 2010-08-14 17:24:59 -04:00
parent 6a8bf2f879
commit 81667424d8
2 changed files with 29 additions and 0 deletions

26
guitarix-gtk218.patch Normal file
View File

@ -0,0 +1,26 @@
svn diff
Index: libgxw/gxw/GxSelector.cpp
===================================================================
--- libgxw/gxw/GxSelector.cpp (revision 842)
+++ libgxw/gxw/GxSelector.cpp (working copy)
@@ -21,6 +21,8 @@
#include <gtk/gtkprivate.h>
#include <string.h>
+#define gtk_widget_get_requisition(w, r) (*r = (w)->requisition)
+
#define P_(s) (s) // FIXME -> gettext
/****************************************************************
Index: libgxw/gxw/GxRegler.cpp
===================================================================
--- libgxw/gxw/GxRegler.cpp (revision 842)
+++ libgxw/gxw/GxRegler.cpp (working copy)
@@ -29,6 +29,8 @@
#include <gtk/gtkbindings.h>
#include <gtk/gtkmarshal.h>
+#define gtk_widget_get_requisition(w, r) (*r = (w)->requisition)
+
#define P_(s) (s) // FIXME -> gettext
#define I_(s) (s) // FIXME -> gettext

View File

@ -6,6 +6,8 @@ Group: Applications/Multimedia
License: GPLv2+
URL: http://guitarix.sourceforge.net/
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{name}-%{version}.tar.bz2
# Compatibility patch sent to us by upstream
Patch0: guitarix-gtk218.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: boost-devel
@ -60,6 +62,7 @@ also be used by any other ladspa host.
%prep
%setup -q
%patch0 -p0 -b .gtk218
# The build system does not use these bundled libraries by default. But
# just to make sure: