summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk3.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-10-10 12:49:57 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 21:28:38 +0100
commit491a53dfac510cfeac29bdd2cf8743592e465a9b (patch)
tree48c2afcc7191b4d1af0b0735aea091bb6dcf226c /perl-install/mygtk3.pm
parent6864e4fc1bac9084c26ba4d502350c128c10ef6f (diff)
downloaddrakx-491a53dfac510cfeac29bdd2cf8743592e465a9b.tar
drakx-491a53dfac510cfeac29bdd2cf8743592e465a9b.tar.gz
drakx-491a53dfac510cfeac29bdd2cf8743592e465a9b.tar.bz2
drakx-491a53dfac510cfeac29bdd2cf8743592e465a9b.tar.xz
drakx-491a53dfac510cfeac29bdd2cf8743592e465a9b.zip
'draw' replaces 'expose_event'
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r--perl-install/mygtk3.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index 318555786..b9a8eaefd 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -116,7 +116,7 @@ sub _gtk {
$w->grab_focus if delete $opts->{grab_focus};
$w->set_padding(@{delete $opts->{padding}}) if exists $opts->{padding};
$w->set_sensitive(delete $opts->{sensitive}) if exists $opts->{sensitive};
- $w->signal_connect(expose_event => delete $opts->{expose_event}) if exists $opts->{expose_event};
+ $w->signal_connect(draw => delete $opts->{draw}) if exists $opts->{draw};
$w->signal_connect(realize => delete $opts->{realize}) if exists $opts->{realize};
(delete $opts->{size_group})->add_widget($w) if $opts->{size_group};
if (my $tip = delete $opts->{tip}) {
@@ -342,7 +342,7 @@ sub _gtk__Image {
my ($width, $height) = ($pixbuf->get_width, $pixbuf->get_height);
$w->set_size_request($width, $height);
$w->{pixbuf} = $pixbuf;
- $w->signal_connect(expose_event => sub {
+ $w->signal_connect(draw => sub {
my (undef, $event) = @_;
if (!$w->{x}) {
my $alloc = $w->get_allocation;
@@ -1481,7 +1481,7 @@ sub flush() {
sub enable_sync_flush {
my ($w) = @_;
- $w->signal_connect(expose_event => sub { $w->{displayed} = 1; 0 });
+ $w->signal_connect(draw => sub { $w->{displayed} = 1; 0 });
}
sub sync_flush {