summaryrefslogtreecommitdiffstats
path: root/perl-install/install_gtk.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-02-18 17:49:15 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-02-18 17:49:15 +0000
commit4fc55d796a2a5cac48abff76867d7c70dbbc59ca (patch)
tree4de1cebeab226a2d1ab30fbe1c6897a505510073 /perl-install/install_gtk.pm
parent3194ee06cf34bc64750ce9168465230a248752a2 (diff)
downloaddrakx-4fc55d796a2a5cac48abff76867d7c70dbbc59ca.tar
drakx-4fc55d796a2a5cac48abff76867d7c70dbbc59ca.tar.gz
drakx-4fc55d796a2a5cac48abff76867d7c70dbbc59ca.tar.bz2
drakx-4fc55d796a2a5cac48abff76867d7c70dbbc59ca.tar.xz
drakx-4fc55d796a2a5cac48abff76867d7c70dbbc59ca.zip
allow to specify font size in output of l2pango_font
destroy and recreate steps window when charset changed because gtk won't update the font size otherwise
Diffstat (limited to 'perl-install/install_gtk.pm')
-rw-r--r--perl-install/install_gtk.pm13
1 files changed, 3 insertions, 10 deletions
diff --git a/perl-install/install_gtk.pm b/perl-install/install_gtk.pm
index d6762ed41..b4176c975 100644
--- a/perl-install/install_gtk.pm
+++ b/perl-install/install_gtk.pm
@@ -69,7 +69,7 @@ sub load_font {
Gtk2::Rc->parse_string(q(
style "default-font"
{
- font_name = ") . lang::l2pango_font($o->{locale}{lang}) . q( 12"
+ font_name = ") . lang::l2pango_font($o->{locale}{lang}) . q("
}
widget "*" style "default-font"
@@ -118,6 +118,7 @@ sub create_steps_window {
return if $::stepswidth == 0;
+ $o->{steps_window} and $o->{steps_window}->destroy;
my $w = bless {}, 'ugtk2';
$w->{rwindow} = $w->{window} = Gtk2::Window->new('toplevel');
$w->{rwindow}->set_uposition(8, 160);
@@ -132,7 +133,7 @@ sub create_steps_window {
$_ eq 'setRootPassword'
and gtkpack__($vb, '', '', $steps{conf} = Gtk2::Label->new(N("System configuration")), '');
$steps{steps}{$_} = { img => gtkcreate_img('steps_off.png'),
- txt => Gtk2::Label->new($o->{steps}{$_}{text}) };
+ txt => Gtk2::Label->new(translate($o->{steps}{$_}{text})) };
gtkpack__($vb, gtkpack__(Gtk2::HBox->new(0, 7), $steps{steps}{$_}{img}, $steps{steps}{$_}{txt}));
}
@@ -157,14 +158,6 @@ sub update_steps_position {
}
}
-sub update_steps_labels {
- my ($o) = @_;
- return if !$steps{steps};
- $steps{inst}->set_label(N("System installation"));
- $steps{conf}->set_label(N("System configuration"));
- $steps{steps}{$_}{txt}->set_label(translate($o->{steps}{$_}{text})) foreach keys %{$steps{steps}};
-}
-
#------------------------------------------------------------------------------
sub create_logo_window {
my ($o) = @_;