aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-05-17 15:42:29 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-18 23:42:07 +0700
commit06e6a07ffbf3c72aa0392a54ac183b0f1a0bdb1b (patch)
tree5cea582fde055c18caf623453fd1b568cae36767
parent6ee286c7699db4f7e24d1d31d750b8d6701b1c4c (diff)
libraries/gtk-sharp: Fix building against newer monos.
Patch from fedora Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/gtk-sharp/gtk-sharp.SlackBuild2
-rw-r--r--libraries/gtk-sharp/gtk-sharp2-2.12.12-gtkrange.patch30
2 files changed, 32 insertions, 0 deletions
diff --git a/libraries/gtk-sharp/gtk-sharp.SlackBuild b/libraries/gtk-sharp/gtk-sharp.SlackBuild
index 7a4aae7e0cf9..5e5c0d450cfd 100644
--- a/libraries/gtk-sharp/gtk-sharp.SlackBuild
+++ b/libraries/gtk-sharp/gtk-sharp.SlackBuild
@@ -69,6 +69,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/gtk-sharp2-2.12.12-gtkrange.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
diff --git a/libraries/gtk-sharp/gtk-sharp2-2.12.12-gtkrange.patch b/libraries/gtk-sharp/gtk-sharp2-2.12.12-gtkrange.patch
new file mode 100644
index 000000000000..00e1790b942b
--- /dev/null
+++ b/libraries/gtk-sharp/gtk-sharp2-2.12.12-gtkrange.patch
@@ -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);