diff options
Diffstat (limited to 'mgaapplet-config')
-rwxr-xr-x | mgaapplet-config | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/mgaapplet-config b/mgaapplet-config index c4ae5d28..59113839 100755 --- a/mgaapplet-config +++ b/mgaapplet-config @@ -57,8 +57,6 @@ sub configure() { # config file has negative options but GUI want positive options (HIG): invbools_for_display(\%config); - my $_ww = eval { gtknew('HScale', digits => 5, value => 3, lower => 0) }; - my $is_hscale_unsupported = $@; my $product = translate_product(); my $res = @@ -69,22 +67,20 @@ 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($is_hscale_unsupported ? ('Entry', text_ref => \$config{UPDATE_FREQUENCY}) - : ('HScale', + gtknew('HScale', digits => 0, lower => 1, upper => 24, step_increment => 1, width => 100, - value_ref => \$config{UPDATE_FREQUENCY})) ], + value_ref => \$config{UPDATE_FREQUENCY}) ], [ gtknew('Label', alignment => [ 0, 1 ], text => N("First check delay (minutes)")), - gtknew($is_hscale_unsupported ? ('Entry', text_ref => \$config{FIRST_CHECK_DELAY}) - : ('HScale', + gtknew('HScale', digits => 0, lower => 5, upper => 30, step_increment => 1, - value_ref => \$config{FIRST_CHECK_DELAY})) ], + value_ref => \$config{FIRST_CHECK_DELAY}) ], [ gtknew('CheckButton', text => N("Check for newer \"%s\" releases", $product), active_ref => \$config{DO_NOT_ASK_FOR_DISTRO_UPGRADE}, |