Updating branch refs/heads/master
         to 3ec314c7f8d3cb5001e137c10c2f0aef60cdff03 (commit)
       from 6597f1f0b457281fb7d858febc4c814dbd7ae593 (commit)

commit 3ec314c7f8d3cb5001e137c10c2f0aef60cdff03
Author: Christian Dywan <[email protected]>
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)
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to