summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2020-02-17 15:46:22 -0300
committerThibault Saunier <tsaunier@igalia.com>2020-02-17 15:46:22 -0300
commita518db82244bf0a752bffb034fb4ec0a80db2a54 (patch)
tree82052bdcf19936f1dcb263853c734e8b0484a789 /samples
parentc5090bdd21c271c0f336cfb335bc4fab6f9d1ab6 (diff)
samples: Explicitly use Gtk range
Avoiding: error CS0104: `Range' is an ambiguous reference between `System.Range' and `Gtk.Range`
Diffstat (limited to 'samples')
-rw-r--r--samples/BasicTutorial5.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/BasicTutorial5.cs b/samples/BasicTutorial5.cs
index 16cae4d..7ccec96 100644
--- a/samples/BasicTutorial5.cs
+++ b/samples/BasicTutorial5.cs
@@ -12,7 +12,7 @@ namespace GstreamerSharp
class Playback
{
static Element Playbin;
- static Range Slider;
+ static Gtk.Range Slider;
static TextView StreamsList;
static ulong silderUpdateSignalID;
@@ -22,7 +22,7 @@ namespace GstreamerSharp
static void HandleValueChanged (object sender, EventArgs e)
{
- var range = (Range)sender;
+ var range = (Gtk.Range)sender;
var value = range.Value;
Playbin.SeekSimple (Format.Time, SeekFlags.Flush | SeekFlags.KeyUnit, (long)(value * Gst.Constants.SECOND));
}