From ab81e188cdcb3477b7e3f38c82eb5e12c2394026 Mon Sep 17 00:00:00 2001 From: Curtis Wensley Date: Fri, 3 Sep 2021 11:43:34 -0700 Subject: [PATCH] Gtk: Fix TextStepper ValidDirection Buttons wouldn't properly enable/disable with latest Gtk+ --- src/Eto.Gtk/Forms/Controls/TextStepperHandler.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Eto.Gtk/Forms/Controls/TextStepperHandler.cs b/src/Eto.Gtk/Forms/Controls/TextStepperHandler.cs index db07f99b10..1d6c5570b7 100644 --- a/src/Eto.Gtk/Forms/Controls/TextStepperHandler.cs +++ b/src/Eto.Gtk/Forms/Controls/TextStepperHandler.cs @@ -10,12 +10,8 @@ namespace Eto.GtkSharp.Forms.Controls { public class TextStepperHandler : TextBoxHandler, TextStepper.IHandler { - #if GTK2 static Gtk.Adjustment DefaultAdjustment = new Gtk.Adjustment(0, 0, 2, 1, 1, 0); - #else - // in gtk3 the upper adjustment is not inclusive?? ugh - static Gtk.Adjustment DefaultAdjustment = new Gtk.Adjustment(0, 0, 3, 1, 1, 0); - #endif + int disableNotification; public TextStepperHandler()