aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-11-30 15:45:53 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-11-30 15:45:53 +0000
commit6cdf540a2e2d19632085c3feede45e2202487a27 (patch)
treef557dd55386107f6e0faecd1df1c498daa699457
parent9da3fd05643c048f99c25269ac94dc44443949d0 (diff)
downloadrpmdrake-6cdf540a2e2d19632085c3feede45e2202487a27.tar
rpmdrake-6cdf540a2e2d19632085c3feede45e2202487a27.tar.gz
rpmdrake-6cdf540a2e2d19632085c3feede45e2202487a27.tar.bz2
rpmdrake-6cdf540a2e2d19632085c3feede45e2202487a27.tar.xz
rpmdrake-6cdf540a2e2d19632085c3feede45e2202487a27.zip
Don't show the "help" button when embedded (since the MCC already has
an "Help" menu item)
-rwxr-xr-xrpmdrake17
1 files changed, 10 insertions, 7 deletions
diff --git a/rpmdrake b/rpmdrake
index bae39952..304eed35 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1045,13 +1045,16 @@ Is it ok to continue?",
)),
0, gtkpack_(
Gtk2::HBox->new(0, 20),
- 0, gtksignal_connect(
- Gtk2::Button->new(but(N("Help"))),
- clicked => sub {
- 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."));
- },
+ if_(
+ !$::isEmbedded,
+ 0, gtksignal_connect(
+ Gtk2::Button->new(but(N("Help"))),
+ clicked => sub {
+ 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."));
+ },
+ ),
),
0, my $action_button = gtksignal_connect(
Gtk2::Button->new(but_($MODE eq 'remove' ? N("Remove") : N("Install"))),