diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-08-31 15:45:21 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-08-31 15:45:21 +0000 |
commit | 0a3ac67a7c22c2df28b7e8074ae0fc8529a2111a (patch) | |
tree | 94ceb5eec1ef8ef6249b73d41db973f7badc5ec3 /perl-install | |
parent | 4bd5eca6ecabccce88559ea34f73154188df792c (diff) | |
download | drakx-0a3ac67a7c22c2df28b7e8074ae0fc8529a2111a.tar drakx-0a3ac67a7c22c2df28b7e8074ae0fc8529a2111a.tar.gz drakx-0a3ac67a7c22c2df28b7e8074ae0fc8529a2111a.tar.bz2 drakx-0a3ac67a7c22c2df28b7e8074ae0fc8529a2111a.tar.xz drakx-0a3ac67a7c22c2df28b7e8074ae0fc8529a2111a.zip |
add "text_ref" for Label's
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/mygtk2.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index b5717f6b7..8f45e77b7 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -322,6 +322,12 @@ sub _gtk__Label { $w->modify_font(Gtk2::Pango::FontDescription->from_string(delete $opts->{font})) if exists $opts->{font}; } + if (my $text_ref = delete $opts->{text_ref}) { + my $set = sub { $w->set_text($$text_ref) }; + gtkval_register($w, $text_ref, $set); + $set->(); + } + $w->set_markup(delete $opts->{text_markup}) if exists $opts->{text_markup}; $w; } |