diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-12-08 14:07:21 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-12-08 14:07:21 +0000 |
commit | 07c2bee46b4b7644bca49665cdd32ccb1943559a (patch) | |
tree | 5e3f6a963bb169157632172f3beec4b31b1fe0e7 /gurpmi | |
parent | 2540dc7489d4e2252cdf5e50177f08b9d70fe221 (diff) | |
download | urpmi-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-- | gurpmi | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |