diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-22 09:12:13 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-22 09:12:13 +0000 |
commit | 817584ff1d58b3455b4256fa90718be3a050a542 (patch) | |
tree | 40254f4b2e0b879e30ba5187927b6887b5c55257 /perl-install/ugtk2.pm | |
parent | 4f42c2b80f5d18c4f350492e489852c90b611df4 (diff) | |
download | drakx-817584ff1d58b3455b4256fa90718be3a050a542.tar drakx-817584ff1d58b3455b4256fa90718be3a050a542.tar.gz drakx-817584ff1d58b3455b4256fa90718be3a050a542.tar.bz2 drakx-817584ff1d58b3455b4256fa90718be3a050a542.tar.xz drakx-817584ff1d58b3455b4256fa90718be3a050a542.zip |
(markup_to_TextView_format) prevent uselessly loading Gtk2::Pango when
rendering with bigger fonts
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r-- | perl-install/ugtk2.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 0bd9726cd..66abbb50f 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -313,8 +313,7 @@ sub markup_to_TextView_format { if ($attrs) { $attrs->{weight} eq 'bold' and $attrs->{weight} = do { require Gtk2::Pango; Gtk2::Pango->PANGO_WEIGHT_BOLD }; $attrs->{size} eq 'larger' and do { - require Gtk2::Pango; - $attrs->{scale} = Gtk2::Pango->PANGO_SCALE_X_LARGE; # equivalent to Label's size => 'larger' + $attrs->{scale} = Gtk2::Pango->scale_x_large; # equivalent to Label's size => 'larger' delete $attrs->{size}; }; } |