aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-02 09:37:38 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-02 09:37:38 +0000
commit195d77e9eb0d6e57475bb74e41b4e6bb7a533c3f (patch)
tree4d566bcb2fb14beff06f6fb9eb5377c6d5cbe6e6
parentd86061509a87c19f2f26d9356c561ecefc792180 (diff)
downloadrpmdrake-195d77e9eb0d6e57475bb74e41b4e6bb7a533c3f.tar
rpmdrake-195d77e9eb0d6e57475bb74e41b4e6bb7a533c3f.tar.gz
rpmdrake-195d77e9eb0d6e57475bb74e41b4e6bb7a533c3f.tar.bz2
rpmdrake-195d77e9eb0d6e57475bb74e41b4e6bb7a533c3f.tar.xz
rpmdrake-195d77e9eb0d6e57475bb74e41b4e6bb7a533c3f.zip
Restore Quit button
-rwxr-xr-xrpmdrake35
1 files changed, 26 insertions, 9 deletions
diff --git a/rpmdrake b/rpmdrake
index 9450feee..bb457458 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -127,9 +127,13 @@ sub end {
sub validate_cancel {
my ($cancel_msg, $cancel_cb) = @_;
if (!$cancel) {
- gtkpack__($vbox,
- $hbox_cancel = gtkpack__(create_hbox(),
- $cancel = gtksignal_connect(Gtk2::Button->new($cancel_msg), clicked => \&$cancel_cb)));
+ gtkpack__(
+ $vbox,
+ $hbox_cancel = gtkpack__(
+ create_hbox(),
+ $cancel = gtksignal_connect(Gtk2::Button->new($cancel_msg), clicked => \&$cancel_cb),
+ ),
+ );
}
$cancel->set_sensitive(1);
$cancel->show;
@@ -439,12 +443,21 @@ sub do_search($$$$$$$) {
);
my $searchstop;
my $searchw = ugtk2->new(N("Rpmdrake"), grab => 1, transient => $w->{rwindow});
- gtkadd($searchw->{window}, gtkpack__(Gtk2::VBox->new(0, 5),
- Gtk2::Label->new(N("Please wait, searching...")),
- my $searchprogress = gtkset_size_request(Gtk2::ProgressBar->new, 300, -1),
- gtkpack__(gtkset_layout(Gtk2::HButtonBox->new, 'spread'),
- gtksignal_connect(Gtk2::Button->new(but(N("Stop"))),
- clicked => sub { $searchstop = 1 }))));
+ gtkadd(
+ $searchw->{window},
+ gtkpack__(
+ Gtk2::VBox->new(0, 5),
+ Gtk2::Label->new(N("Please wait, searching...")),
+ my $searchprogress = gtkset_size_request(Gtk2::ProgressBar->new, 300, -1),
+ gtkpack__(
+ gtkset_layout(Gtk2::HButtonBox->new, 'spread'),
+ gtksignal_connect(
+ Gtk2::Button->new(but(N("Stop"))),
+ clicked => sub { $searchstop = 1 },
+ ),
+ ),
+ ),
+ );
$searchw->sync;
open my $sf, 'parsehdlist --fileswinfo --description --summary ' . join(' ', map { "'$_'" } @hdlists) . ' |';
my ($pkg, $progresscount);
@@ -1167,6 +1180,10 @@ Is it ok to continue?",
clicked => sub { $do_action->() },
),
1, $status,
+ 0, gtksignal_connect(
+ Gtk2::Button->new(but_(N("Quit"))),
+ clicked => sub { Gtk2->main_quit },
+ ),
),
),
),