aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xedit-urpm-sources.pl10
-rw-r--r--rpmdrake.pm9
2 files changed, 10 insertions, 9 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 690402c8..3b054f4b 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -978,15 +978,7 @@ sub mainwindow {
),
0, Gtk2::HSeparator->new,
0, gtkpack(create_hbox('edge'),
- gtksignal_connect(
- Gtk2::Button->new(but(N("Help"))), clicked => sub {
- system("drakhelp --id software-management-sources &");
- interactive_msg(
- N("Help launched in background"),
- N("The help window has been started, it should appear shortly on your desktop."),
- );
- }
- ),
+ gtksignal_connect(Gtk2::Button->new(but(N("Help"))), clicked => sub { rpmdrake::open_help('sources') }),
gtksignal_connect(Gtk2::Button->new(but(N("Ok"))), clicked => sub { Gtk2->main_quit })
)
)
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 430b078b..a97a2ee9 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -754,4 +754,13 @@ It will be disabled.",
1;
}
+sub open_help {
+ my ($mode) = @_;
+ system("drakhelp --id software-management-$mode &");
+ interactive_msg(
+ N("Help launched in background"),
+ N("The help window has been started, it should appear shortly on your desktop."),
+ );
+}
+
1;