diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-10 01:48:29 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-10 01:48:29 +0000 |
commit | 2ebbfb9d4d04547978de66c7d53e68a6735c0773 (patch) | |
tree | f5c9de4d46deb5f46df80955671263ade9443dff /rpmdrake.pm | |
parent | d714c00b8bc20092bc53b616f59178d3933244e3 (diff) | |
download | rpmdrake-2ebbfb9d4d04547978de66c7d53e68a6735c0773.tar rpmdrake-2ebbfb9d4d04547978de66c7d53e68a6735c0773.tar.gz rpmdrake-2ebbfb9d4d04547978de66c7d53e68a6735c0773.tar.bz2 rpmdrake-2ebbfb9d4d04547978de66c7d53e68a6735c0773.tar.xz rpmdrake-2ebbfb9d4d04547978de66c7d53e68a6735c0773.zip |
Don't hide banner in mcc when lauching rpmdrake
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r-- | rpmdrake.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm index 42cc6796..5177e44c 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -59,6 +59,7 @@ our @EXPORT = qw( interactive_packtable interactive_list fatal_msg + getbanner wait_msg remove_wait_msg but @@ -295,6 +296,14 @@ sub fatal_msg { myexit -1; } +sub getbanner () { + Gtk2::Banner->new("title-$::MODE", { + remove => N("Software Packages Removal"), + update => N("Software Packages Update"), + install => N("Software Packages Installation"), + }->{$::MODE}); +} + sub wait_msg { my ($msg, %options) = @_; gtkflush(); @@ -305,6 +314,7 @@ sub wait_msg { $mainw->{window}, gtkpack__( gtkset_border_width(Gtk2::VBox->new(0, 5), 6), + if_($options{banner}, getbanner), $label, if_(exists $options{widgets}, @{$options{widgets}}), ) |