summaryrefslogtreecommitdiffstats
path: root/perl-install/install_gtk.pm
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2002-12-05 16:07:46 +0000
committerPablo Saratxaga <pablo@mandriva.com>2002-12-05 16:07:46 +0000
commitb21481137d54fb5a37c023985c109d5126f53124 (patch)
treefbd8ba9af39ca68f99fed4f236a2e6c7973b8184 /perl-install/install_gtk.pm
parent35a10c47ac5e482775d362d228624ba060c11010 (diff)
downloaddrakx-backup-do-not-use-b21481137d54fb5a37c023985c109d5126f53124.tar
drakx-backup-do-not-use-b21481137d54fb5a37c023985c109d5126f53124.tar.gz
drakx-backup-do-not-use-b21481137d54fb5a37c023985c109d5126f53124.tar.bz2
drakx-backup-do-not-use-b21481137d54fb5a37c023985c109d5126f53124.tar.xz
drakx-backup-do-not-use-b21481137d54fb5a37c023985c109d5126f53124.zip
made some functions to retrieve pango font namese from lang/charset
Diffstat (limited to 'perl-install/install_gtk.pm')
-rw-r--r--perl-install/install_gtk.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/install_gtk.pm b/perl-install/install_gtk.pm
index 8fcbb1b1f..30378fcf6 100644
--- a/perl-install/install_gtk.pm
+++ b/perl-install/install_gtk.pm
@@ -45,18 +45,23 @@ sub install_theme {
load_rc($_) foreach "themes-$o->{theme}", "install", "themes";
+ my $pango_font_name = "";
+ if (my $pango_font = lang::lang2pango_font($o->{lang})) {
+ $pango_font_name_10 = "font_name = \"$pango_font 10\""
+ $pango_font_name_12 = "font_name = \"$pango_font 12\""
+ }
if (my ($font, $font2) = lang::get_x_fontset($o->{lang}, $::rootwidth < 800 ? 10 : 12)) {
$font2 ||= $font;
Gtk2::Rc->parse_string(qq(
style "default-font"
{
fontset = "$font,*"
- font_name = "Nimbus Sans L 12"
+ $pango_font_name_12
}
style "small-font"
{
fontset = "$font2,*"
- font_name = "Nimbus Sans L 10"
+ $pango_font_name_10
}
widget "*" style "default-font"
widget "*Steps*" style "small-font"