diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-11-30 15:45:53 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-11-30 15:45:53 +0000 |
commit | 6cdf540a2e2d19632085c3feede45e2202487a27 (patch) | |
tree | f557dd55386107f6e0faecd1df1c498daa699457 | |
parent | 9da3fd05643c048f99c25269ac94dc44443949d0 (diff) | |
download | rpmdrake-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-x | rpmdrake | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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"))), |