Add gtk-2.18 compatibility patch
This commit is contained in:
parent
6a8bf2f879
commit
81667424d8
26
guitarix-gtk218.patch
Normal file
26
guitarix-gtk218.patch
Normal 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
|
@ -6,6 +6,8 @@ Group: Applications/Multimedia
|
|||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://guitarix.sourceforge.net/
|
URL: http://guitarix.sourceforge.net/
|
||||||
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{name}-%{version}.tar.bz2
|
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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
@ -60,6 +62,7 @@ also be used by any other ladspa host.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p0 -b .gtk218
|
||||||
|
|
||||||
# The build system does not use these bundled libraries by default. But
|
# The build system does not use these bundled libraries by default. But
|
||||||
# just to make sure:
|
# just to make sure:
|
||||||
|
Loading…
Reference in New Issue
Block a user