summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-11 11:18:13 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-11 11:18:13 +0000
commitb0729c6d493e440cd9003f994cec9f5144957d2c (patch)
tree25e539bce78053f2092a0e86e1dddb0d96a26ddd /perl-install/mygtk2.pm
parentea09b6383c6468fb513d10f199168e8106d097a0 (diff)
downloaddrakx-b0729c6d493e440cd9003f994cec9f5144957d2c.tar
drakx-b0729c6d493e440cd9003f994cec9f5144957d2c.tar.gz
drakx-b0729c6d493e440cd9003f994cec9f5144957d2c.tar.bz2
drakx-b0729c6d493e440cd9003f994cec9f5144957d2c.tar.xz
drakx-b0729c6d493e440cd9003f994cec9f5144957d2c.zip
(enable_sync_flush,sync_flush) split them out of wait_messageW() so that
rpmdrake can get rid of some gray windows
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 3107510c9..2f70efe89 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -1413,6 +1413,18 @@ sub flush() {
Gtk2->main_iteration while Gtk2->events_pending;
}
+sub enable_sync_flush {
+ my ($w) = @_;
+ $w->signal_connect(expose_event => sub { $w->{displayed} = 1; 0 });
+}
+
+sub sync_flush {
+ my ($w) = @_;
+ # hackish :-(
+ mygtk2::sync($w) while !$w->{displayed};
+}
+
+
sub may_destroy {
my ($w) = @_;
return if !$w;