diff options
-rwxr-xr-x | control-center | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/control-center b/control-center index f6725a1c..7330582e 100755 --- a/control-center +++ b/control-center @@ -271,6 +271,11 @@ my $window_global = gtkset_size_request(Gtk2::Window->new('toplevel'), $global_w my $pending_app = 0; +my $path2help = "Drakxtools-Guide.html/"; +my $help_on_context = $path2help . "drakconf-intro.html"; +#Please replace with correct contextual help page +my @ctx = qw(drakconf-intro drakfloppy harddrake diskdrake internet-connection draksec userdrake software-management wiz-client); + #-PO Translators, please keep all "/" charaters !!! my %options = ( 'show_log' => [ N("/_Options"), N("/Display _Logs") ], @@ -319,7 +324,7 @@ my @menu_items = ( [ N("/_Themes").N("/_More themes"), undef, \&more_themes, undef, '<Item>' ] ), [ N("/_Help"), undef, undef, undef, '<Branch>' ], - [ N("/_Help").N("/_Help"), undef, sub { fork_("drakhelp Drakxtools-Guide.html/drakconf-intro.html") }, undef, '<StockItem>', 'gtk-help' ], + [ N("/_Help").N("/_Help"), undef, sub { fork_("drakhelp $help_on_context") }, undef, '<StockItem>', 'gtk-help' ], [ N("/_Help").N("/_Report Bug"), undef, sub { fork_("drakbug --report drakconf &") }, undef, '<Item>' ], [ N("/_Help").N("/_About..."), undef, \&about_mdk_cc, undef, '<Item>' ] ); @@ -386,7 +391,7 @@ $window_global->set_title(N("Mandrake Control Center %s", $version) . " [" . cho $window_global->set_position('center'); $notebook_global->set_property('show-border', 0); -$notebook_global->set_property('show-tabs', 0); #$notebook_global->set_show_tabs(0); +$notebook_global->set_property('show-tabs', 1); #$notebook_global->set_show_tabs(0); # banner : @@ -907,6 +912,7 @@ sub set_page { my ($index) = @_; update_exp(); $notebook_global->set_current_page($index); + $help_on_context = $path2help . $ctx[$index] . ".html"; } |