summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2003-07-23 14:13:46 +0000
committerDaouda Lo <daouda@mandriva.com>2003-07-23 14:13:46 +0000
commitdc412d2af78d3aafc0547ba734ca00a2f05dbf90 (patch)
tree03f358447e3aaae750da934c4a6a53cc34345dd0
parente65d06316a4273ef2c82494bffcbeac06c8e65a6 (diff)
downloadcontrol-center-dc412d2af78d3aafc0547ba734ca00a2f05dbf90.tar
control-center-dc412d2af78d3aafc0547ba734ca00a2f05dbf90.tar.gz
control-center-dc412d2af78d3aafc0547ba734ca00a2f05dbf90.tar.bz2
control-center-dc412d2af78d3aafc0547ba734ca00a2f05dbf90.tar.xz
control-center-dc412d2af78d3aafc0547ba734ca00a2f05dbf90.zip
- add contextual help
-rwxr-xr-xcontrol-center10
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";
}