summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-08-31 15:45:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-08-31 15:45:21 +0000
commit0a3ac67a7c22c2df28b7e8074ae0fc8529a2111a (patch)
tree94ceb5eec1ef8ef6249b73d41db973f7badc5ec3 /perl-install/mygtk2.pm
parent4bd5eca6ecabccce88559ea34f73154188df792c (diff)
downloaddrakx-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/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm6
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;
}