From: Christian Dywan Date: Fri, 20 Jul 2012 22:12:04 +0000 (+0200) Subject: Use Gtk.HScale with GTK+2 instead of Gtk.Scale X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec314c7f8d3cb5001e137c10c2f0aef60cdff03;p=midori Use Gtk.HScale with GTK+2 instead of Gtk.Scale Fixes: https://bugs.launchpad.net/midori/+bug/1026945 --- 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)