diff options
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | mgaapplet-config | 12 |
2 files changed, 5 insertions, 8 deletions
@@ -1,6 +1,7 @@ - mdkapplet-config (mga#12148) o fix detecting if HScale widgets are supported o fix two Entry pointing to the same reference in old compat mode + o drop support for mdv 200[89].x Version 3.3 - 21 December 2013, Thierry Vignaud 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}, |