slackbuilds_ponce/libraries/gtk-sharp/gtk-sharp2-2.12.12-gtkrange.patch
Matteo Bernardini 06e6a07ffb
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>
2021-05-18 23:42:07 +07:00

30 lines
1 KiB
Diff

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);