[Xfce4-commits] <midori:master> Use Gtk.HScale with GTK+2 instead of Gtk.Scale
Christian Dywan
noreply at xfce.org
Sat Jul 21 00:26:03 CEST 2012
Updating branch refs/heads/master
to 3ec314c7f8d3cb5001e137c10c2f0aef60cdff03 (commit)
from 6597f1f0b457281fb7d858febc4c814dbd7ae593 (commit)
commit 3ec314c7f8d3cb5001e137c10c2f0aef60cdff03
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Jul 21 00:12:04 2012 +0200
Use Gtk.HScale with GTK+2 instead of Gtk.Scale
Fixes: https://bugs.launchpad.net/midori/+bug/1026945
extensions/delayed-load.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/extensions/delayed-load.vala b/extensions/delayed-load.vala
index a7ef101..6826170 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)
More information about the Xfce4-commits
mailing list