summaryrefslogtreecommitdiffstats
path: root/gurpmi
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-08 14:07:21 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-08 14:07:21 +0000
commit07c2bee46b4b7644bca49665cdd32ccb1943559a (patch)
tree5e3f6a963bb169157632172f3beec4b31b1fe0e7 /gurpmi
parent2540dc7489d4e2252cdf5e50177f08b9d70fe221 (diff)
downloadurpmi-07c2bee46b4b7644bca49665cdd32ccb1943559a.tar
urpmi-07c2bee46b4b7644bca49665cdd32ccb1943559a.tar.gz
urpmi-07c2bee46b4b7644bca49665cdd32ccb1943559a.tar.bz2
urpmi-07c2bee46b4b7644bca49665cdd32ccb1943559a.tar.xz
urpmi-07c2bee46b4b7644bca49665cdd32ccb1943559a.zip
Refresh interface at each window change.
Diffstat (limited to 'gurpmi')
-rw-r--r--gurpmi11
1 files changed, 6 insertions, 5 deletions
diff --git a/gurpmi b/gurpmi
index c083bd42..890c5ff4 100644
--- a/gurpmi
+++ b/gurpmi
@@ -70,6 +70,11 @@ sub add_button_box {
$_->set_alignment(0.5, 0.5), $hbox->add($_) foreach @buttons;
}
+sub sync {
+ $mainw->show;
+ Gtk2->main_iteration while Gtk2->events_pending;
+}
+
#- sets the window to a please-wait message
sub wait_label {
my $wait_vbox = Gtk2::VBox->new(0, 5);
@@ -77,11 +82,7 @@ sub wait_label {
$wait_label->set_alignment(0.5, 0.5);
$wait_vbox->pack_start($wait_label, 1, 1, 0);
change_mainw($wait_vbox);
-}
-
-sub sync {
- $mainw->show;
- Gtk2->main_iteration while Gtk2->events_pending;
+ sync();
}
#- Parse command line