Browse Source

[GTK3] Normal priority for timers

pull/1181/head
Nikita Tsukanov 9 years ago
parent
commit
b05f913e25
  1. 2
      src/Gtk/Avalonia.Gtk3/Interop/GlibTimeout.cs

2
src/Gtk/Avalonia.Gtk3/Interop/GlibTimeout.cs

@ -53,7 +53,7 @@ namespace Avalonia.Gtk3.Interop
if (interval == 0)
throw new ArgumentException("Don't know how to create a timer with zero or negative interval");
var timer = new Timer ();
GlibTimeout.Add(GlibPriority.FromDispatcherPriority(DispatcherPriority.Background), interval,
GlibTimeout.Add(GlibPriority.FromDispatcherPriority(DispatcherPriority.Normal), interval,
() =>
{
if (timer.Stopped)

Loading…
Cancel
Save