]> spindle.queued.net Git - midori/commitdiff
Use Gtk.HScale with GTK+2 instead of Gtk.Scale
authorChristian Dywan <christian@twotoasts.de>
Fri, 20 Jul 2012 22:12:04 +0000 (00:12 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 20 Jul 2012 22:12:04 +0000 (00:12 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/1026945
extensions/delayed-load.vala

index a7ef101c624f295edf9b1db7718580fd3d826a09..68261700e1128fbfc18f55f363c2fd8d2fa5059d 100644 (file)
@@ -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)