* sync gtk-sharp-2 with main arch
This commit is contained in:
parent
aef3a126ca
commit
eb4c5813c2
@ -3,16 +3,23 @@
|
||||
|
||||
pkgname=gtk-sharp-2
|
||||
pkgver=2.12.45
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="gtk2 bindings for C#"
|
||||
arch=(x86_64 powerpc64le)
|
||||
license=('LGPL')
|
||||
url="https://www.mono-project.com/docs/gui/gtksharp/"
|
||||
depends=('mono' 'libglade' 'gtk2')
|
||||
makedepends=('pkgconfig' 'monodoc' 'mesa')
|
||||
depends=('mono' 'gtk2')
|
||||
makedepends=('monodoc')
|
||||
options=('!makeflags')
|
||||
source=(https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${pkgver}.tar.gz)
|
||||
sha256sums=('02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a')
|
||||
source=(https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${pkgver}.tar.gz
|
||||
gtk-sharp2-2.12.12-gtkrange.patch)
|
||||
sha256sums=('02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a'
|
||||
'26a1ade869ba1b54f37e544332e6e40cc6d3c93414a712d8605cb44fc212acf9')
|
||||
|
||||
prepare() {
|
||||
cd gtk-sharp-${pkgver}
|
||||
patch -Np1 -i ../gtk-sharp2-2.12.12-gtkrange.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd gtk-sharp-${pkgver}
|
||||
|
30
gtk-sharp-2/gtk-sharp2-2.12.12-gtkrange.patch
Normal file
30
gtk-sharp-2/gtk-sharp2-2.12.12-gtkrange.patch
Normal file
@ -0,0 +1,30 @@
|
||||
diff --git a/sample/test/TestRange.cs b/sample/test/TestRange.cs
|
||||
index 82fb811..29a8ee7 100644
|
||||
--- a/sample/test/TestRange.cs
|
||||
+++ b/sample/test/TestRange.cs
|
||||
@@ -32,14 +32,14 @@ namespace WidgetViewer {
|
||||
|
||||
HScale hscale = new HScale (adjustment);
|
||||
hscale.SetSizeRequest (150, -1);
|
||||
- ((Range) hscale).UpdatePolicy = UpdateType.Delayed;
|
||||
+ ((Gtk.Range) hscale).UpdatePolicy = UpdateType.Delayed;
|
||||
|
||||
hscale.Digits = 1;
|
||||
hscale.DrawValue = true;
|
||||
box2.PackStart (hscale, true, true, 0);
|
||||
|
||||
HScrollbar hscrollbar = new HScrollbar (adjustment);
|
||||
- ((Range) hscrollbar).UpdatePolicy = UpdateType.Continuous;
|
||||
+ ((Gtk.Range) hscrollbar).UpdatePolicy = UpdateType.Continuous;
|
||||
box2.PackStart (hscrollbar, true, true, 0);
|
||||
|
||||
hscale = new HScale (adjustment);
|
||||
@@ -59,7 +59,7 @@ namespace WidgetViewer {
|
||||
vscale.SetSizeRequest (-1, 200);
|
||||
vscale.Digits = 2;
|
||||
vscale.DrawValue = true;
|
||||
- ((Range) vscale).Inverted = true;
|
||||
+ ((Gtk.Range) vscale).Inverted = true;
|
||||
hbox.PackStart (vscale, true, true, 0);
|
||||
|
||||
vscale = new VScale (adjustment);
|
Loading…
x
Reference in New Issue
Block a user