summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-09-06 13:35:56 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 21:28:37 +0100
commitc6b68a4baeb51c14d5f6825e396b1ede42c941ae (patch)
tree44e1bfea4f3396ae743a0adecc0840030d171473
parent6996f879c683210337d0fbcdc5c0e24ef9ef0055 (diff)
downloaddrakx-c6b68a4baeb51c14d5f6825e396b1ede42c941ae.tar
drakx-c6b68a4baeb51c14d5f6825e396b1ede42c941ae.tar.gz
drakx-c6b68a4baeb51c14d5f6825e396b1ede42c941ae.tar.bz2
drakx-c6b68a4baeb51c14d5f6825e396b1ede42c941ae.tar.xz
drakx-c6b68a4baeb51c14d5f6825e396b1ede42c941ae.zip
->modify_font() => ->override_font()
the former is deprecated in gtk+3
-rw-r--r--perl-install/mygtk3.pm2
-rw-r--r--perl-install/ugtk3.pm6
2 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index 75a613c16..5934f32cf 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -417,7 +417,7 @@ sub _gtk__Label {
$w->set_justify(delete $opts->{justify}) if exists $opts->{justify};
$w->set_line_wrap(delete $opts->{line_wrap}) if exists $opts->{line_wrap};
$w->set_alignment(@{delete $opts->{alignment}}) if exists $opts->{alignment};
- $w->modify_font(Pango::FontDescription->from_string(delete $opts->{font})) if exists $opts->{font};
+ $w->override_font(Pango::FontDescription->from_string(delete $opts->{font})) if exists $opts->{font};
}
if (my $text_ref = delete $opts->{text_ref}) {
diff --git a/perl-install/ugtk3.pm b/perl-install/ugtk3.pm
index 6480330e7..1c12c0965 100644
--- a/perl-install/ugtk3.pm
+++ b/perl-install/ugtk3.pm
@@ -8,7 +8,7 @@ use locale;
@ISA = qw(Exporter);
%EXPORT_TAGS = (
wrappers => [ qw(gtkadd gtkadd_widget gtkappend gtkappend_page gtkappenditems gtkcombo_setpopdown_strings gtkdestroy
- gtkentry gtkflush gtkhide gtkmodify_font gtkmove gtkpack gtkpack2 gtkpack2_
+ gtkentry gtkflush gtkhide gtkoverride_font gtkmove gtkpack gtkpack2 gtkpack2_
gtkpack2__ gtkpack_ gtkpack__ gtkpowerpack gtkput gtkradio gtkresize gtkroot
gtkset_active gtkset_border_width gtkset_editable gtkset_justify gtkset_alignment gtkset_layout gtkset_line_wrap
gtkset_markup gtkset_modal gtkset_mousecursor gtkset_mousecursor_normal gtkset_mousecursor_wait gtkset_name
@@ -658,9 +658,9 @@ sub gtkfontinfo {
%fontinfo;
}
-sub gtkmodify_font {
+sub gtkoverride_font {
my ($w, $arg) = @_;
- $w->modify_font(ref($arg) ? $arg : Pango::FontDescription->from_string($arg));
+ $w->override_font(ref($arg) ? $arg : Pango::FontDescription->from_string($arg));
$w;
}