Use Gtk.HScale with GTK+2 instead of Gtk.Scale

Fixes: https://bugs.launchpad.net/midori/+bug/1026945
This commit is contained in:
Christian Dywan 2012-07-21 00:12:04 +02:00
parent 6597f1f0b4
commit 3ec314c7f8
1 changed files with 4 additions and 0 deletions

View 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)