From 3ec314c7f8d3cb5001e137c10c2f0aef60cdff03 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 21 Jul 2012 00:12:04 +0200 Subject: [PATCH] Use Gtk.HScale with GTK+2 instead of Gtk.Scale Fixes: https://bugs.launchpad.net/midori/+bug/1026945 --- extensions/delayed-load.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/delayed-load.vala b/extensions/delayed-load.vala index a7ef101c..68261700 100644 --- a/extensions/delayed-load.vala +++ b/extensions/delayed-load.vala @@ -47,7 +47,11 @@ namespace DelayedLoad { private void create_widgets () { Label text = new Label ("%s:".printf (_("Delay in seconds until loading the page"))); +#if HAVE_GTK3 this.slider = new Scale.with_range (Orientation.HORIZONTAL, 0, 15, 0.1); +#else + this.slider = new HScale.with_range (0, 15, 0.1); +#endif int delay = this.dl_manager.get_integer ("delay"); if (delay > 0) -- 2.39.5