diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-02-16 20:22:24 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-02-16 20:22:24 +0000 |
commit | 8c847f02b2ff79db0f8ecc0a3041d964f0658c37 (patch) | |
tree | 49faccdef1a9d3b80b347f43f4f2154ba74dcf92 /perl-install/Xconfig/resolution_and_depth.pm | |
parent | 65476d975761958788bef066c0640f56cc213b64 (diff) | |
download | drakx-8c847f02b2ff79db0f8ecc0a3041d964f0658c37.tar drakx-8c847f02b2ff79db0f8ecc0a3041d964f0658c37.tar.gz drakx-8c847f02b2ff79db0f8ecc0a3041d964f0658c37.tar.bz2 drakx-8c847f02b2ff79db0f8ecc0a3041d964f0658c37.tar.xz drakx-8c847f02b2ff79db0f8ecc0a3041d964f0658c37.zip |
- factorize "Help"-button handling
- fix interactive_help_get_id (happily, it was no pb :)
Diffstat (limited to 'perl-install/Xconfig/resolution_and_depth.pm')
-rw-r--r-- | perl-install/Xconfig/resolution_and_depth.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm index 0efdc6671..b84b5731e 100644 --- a/perl-install/Xconfig/resolution_and_depth.pm +++ b/perl-install/Xconfig/resolution_and_depth.pm @@ -253,6 +253,7 @@ sub choose_gtk { }; $set_chosen_x_res->($chosen_x_res, $chosen_y_res); + my $help_sub = $in->interactive_help_sub_display_id('configureX_resolution'); gtkadd($W->{window}, gtkpack_($W->create_box_with_title(N("Choose the resolution and the color depth"), if_($card->{BoardName}, "(" . N("Graphics card: %s", $card->{BoardName}) . ")"), @@ -268,11 +269,7 @@ sub choose_gtk { ), ), ), - 0, gtkadd($W->create_okcancel(N("Ok"), N("Cancel"), '', - [ N("Help"), sub { - my $message = $in->interactive_help_get_id('configureX_resolution') or return; - $in->ask_warn(N("Help"), $message); - }, 1 ])), + 0, gtkadd($W->create_okcancel(N("Ok"), N("Cancel"), '', if_($help_sub, [ N("Help"), $help_sub, 1 ]))), )); $depth_combo->disable_activate; $depth_combo->set_use_arrows_always(1); |