diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-24 12:26:45 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-24 12:26:45 +0000 |
commit | 269412a82b1beda842b209010544579c340b1e86 (patch) | |
tree | 01ebd8ccea5c2dbe86cee50b64bbdf54409d18bd /perl-install/mygtk2.pm | |
parent | 7e25d6f1ccfbed6c0aff9013de48ae2c79188987 (diff) | |
download | drakx-269412a82b1beda842b209010544579c340b1e86.tar drakx-269412a82b1beda842b209010544579c340b1e86.tar.gz drakx-269412a82b1beda842b209010544579c340b1e86.tar.bz2 drakx-269412a82b1beda842b209010544579c340b1e86.tar.xz drakx-269412a82b1beda842b209010544579c340b1e86.zip |
(_gtk,_gtk__DrawingArea) enable to set handler for 'expose_event' signal on any widget
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r-- | perl-install/mygtk2.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 458a507cc..fff267850 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -118,6 +118,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}; (delete $opts->{size_group})->add_widget($w) if $opts->{size_group}; if (my $tip = delete $opts->{tip}) { $global_tooltips ||= Gtk2::Tooltips->new; @@ -289,7 +290,6 @@ sub _gtk__DrawingArea { if (!$w) { $w = Gtk2::DrawingArea->new; } - $w->signal_connect(expose_event => delete $opts->{expose_event}) if exists $opts->{expose_event}; $w; } |