diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-26 14:06:21 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-26 14:06:21 +0000 |
commit | bce0398b2148689d2087ac5a6f51753c5798b9a6 (patch) | |
tree | ea3b0a535aa5ab4b9f7c76dd2bd73150b366af3e /perl-install | |
parent | 71cd2e80913a825c0b446b64bdaeb6f58647b620 (diff) | |
download | drakx-backup-do-not-use-bce0398b2148689d2087ac5a6f51753c5798b9a6.tar drakx-backup-do-not-use-bce0398b2148689d2087ac5a6f51753c5798b9a6.tar.gz drakx-backup-do-not-use-bce0398b2148689d2087ac5a6f51753c5798b9a6.tar.bz2 drakx-backup-do-not-use-bce0398b2148689d2087ac5a6f51753c5798b9a6.tar.xz drakx-backup-do-not-use-bce0398b2148689d2087ac5a6f51753c5798b9a6.zip |
(Gtk2::Banner::new) create only *one* expose event handler
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/ugtk2.pm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index bd13de951..3d12db346 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -1613,13 +1613,6 @@ sub set_pixmap { $darea->window->set_back_pixmap($pixmap); $darea->{layout} = $darea->create_pango_layout($darea->{text}); - $darea->signal_connect(expose_event => sub { - my $height = $darea->{icon}->get_height; - $darea->{icon}->render_to_drawable($window, $darea->style->bg_gc('normal'), - 0, 0, 10, 10, -1, -1, 'none', 0, 0); - $darea->window->draw_layout($style->text_gc('normal'), $height + 20, 25, $darea->{layout}); - 1; - }); } @@ -1634,6 +1627,14 @@ sub new { $darea->signal_connect(realize => \&set_pixmap); $darea->signal_connect("style-set" => \&set_pixmap); + $darea->signal_connect(expose_event => sub { + my $style = $darea->get_style; + my $height = $darea->{icon}->get_height; + $darea->{icon}->render_to_drawable($darea->window, $style->bg_gc('normal'), + 0, 0, 10, 10, -1, -1, 'none', 0, 0); + $darea->window->draw_layout($style->text_gc('normal'), $height + 20, 25, $darea->{layout}); + 1; + }); return $darea; } |