summaryrefslogtreecommitdiffstats
path: root/mdkapplet-config
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-24 15:16:43 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-24 15:16:43 +0000
commit56bcaff85b7b8a98ffdf67118a4df873fe301882 (patch)
tree90853c5915891258795d9e58a7ff0065d3b47f49 /mdkapplet-config
parenta80f5fa66eff43e2abc8cfb148b7bef6e90308f2 (diff)
downloadmgaonline-56bcaff85b7b8a98ffdf67118a4df873fe301882.tar
mgaonline-56bcaff85b7b8a98ffdf67118a4df873fe301882.tar.gz
mgaonline-56bcaff85b7b8a98ffdf67118a4df873fe301882.tar.bz2
mgaonline-56bcaff85b7b8a98ffdf67118a4df873fe301882.tar.xz
mgaonline-56bcaff85b7b8a98ffdf67118a4df873fe301882.zip
(configure) make it work on 2008.x & 2009.x
Diffstat (limited to 'mdkapplet-config')
-rwxr-xr-xmdkapplet-config13
1 files changed, 9 insertions, 4 deletions
diff --git a/mdkapplet-config b/mdkapplet-config
index 53f38a1e..7e5ed24b 100755
--- a/mdkapplet-config
+++ b/mdkapplet-config
@@ -53,6 +53,9 @@ sub configure() {
# sanity check:
$config{UPDATE_FREQUENCY} = 1 if $config{UPDATE_FREQUENCY} < 1;
+
+ my $_ww = eval { gtknew('HScale', digits => 5) };
+ my $is_hscale_unsupported = $@;
my $res =
fill_n_run_portable_dialog(
@@ -62,19 +65,21 @@ sub configure() {
gtknew('Label_Left', text => N("Here you can configure the updates applet"), @common),
gtknew('Table', col_spacings => 5, row_spacings => 5, children => [
[ gtknew('Label', alignment => [ 0, 1 ], text => N("Update frequency (hours)")),
- gtknew('HScale',
+ gtknew($is_hscale_unsupported ? ('Entry', text_ref => \$config{UPDATE_FREQUENCY})
+ : ('HScale',
digits => 0,
lower => 1,
upper => 24,
step_increment => 1,
- value_ref => \$config{UPDATE_FREQUENCY}) ],
+ value_ref => \$config{UPDATE_FREQUENCY})) ],
[ gtknew('Label', alignment => [ 0, 1 ], text => N("First check delay (minutes)")),
- gtknew('HScale',
+ gtknew($is_hscale_unsupported ? ('Entry', text_ref => \$config{UPDATE_FREQUENCY})
+ : ('HScale',
digits => 0,
lower => 5,
upper => 30,
step_increment => 1,
- value_ref => \$config{FIRST_CHECK_DELAY}) ]
+ value_ref => \$config{FIRST_CHECK_DELAY})) ]
]),
create_okcancel($w), #, N("Next"), N("Cancel")),
]);