summaryrefslogtreecommitdiffstats
path: root/perl-install/install/gtk.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-07-30 17:46:12 +0000
committerThierry Vignaud <tv@mandriva.org>2008-07-30 17:46:12 +0000
commit0aceb01fdd35376928955c308d436ecb3af325ba (patch)
treed4c7bc83818cf6aee4c411b79ab8b5f3ed541dde /perl-install/install/gtk.pm
parentf61be5e97160410765b2ecf57ca58142222bbd13 (diff)
downloaddrakx-backup-do-not-use-0aceb01fdd35376928955c308d436ecb3af325ba.tar
drakx-backup-do-not-use-0aceb01fdd35376928955c308d436ecb3af325ba.tar.gz
drakx-backup-do-not-use-0aceb01fdd35376928955c308d436ecb3af325ba.tar.bz2
drakx-backup-do-not-use-0aceb01fdd35376928955c308d436ecb3af325ba.tar.xz
drakx-backup-do-not-use-0aceb01fdd35376928955c308d436ecb3af325ba.zip
(create_steps_window) first steps toward new installer style
Diffstat (limited to 'perl-install/install/gtk.pm')
-rw-r--r--perl-install/install/gtk.pm38
1 files changed, 30 insertions, 8 deletions
diff --git a/perl-install/install/gtk.pm b/perl-install/install/gtk.pm
index ce3dd34a0..b403a3e38 100644
--- a/perl-install/install/gtk.pm
+++ b/perl-install/install/gtk.pm
@@ -122,7 +122,7 @@ sub create_steps_window {
};
my @l = (
- create_logo(),
+ gtknew('HBox', height => 145),
$category->(N("Installation"))
);
foreach (grep { !eval $o->{steps}{$_}{hidden} } @{$o->{orderedSteps}}) {
@@ -138,13 +138,35 @@ sub create_steps_window {
]);
}
- my $offset = 20;
- $o->{steps_window} =
- gtknew('Window', width => ($::stepswidth - $offset), widget_name => 'Steps', title => 'Steps',
- position => [ lang::text_direction_rtl() ? $::rootwidth - $::stepswidth : $offset, 0 ],
- child => gtknew('VBox', spacing => 6, children_tight => \@l));
-
- $o->{steps_window}->show;
+ my $offset = 10;
+ $o->{steps_widget} =
+ gtknew('Fixed', widget_name => 'Steps', pixbuf_file => 'left-background',
+ has_window => 1, x => 0, y => 0, height => 500, width => $::stepswidth, # -1
+ child => gtknew('VBox', spacing => 6, width => ($::stepswidth - $offset), children_tight => \@l));
+ $o->{steps_widget}->put(
+ # FIXME: not RTL compliant (lang::text_direction_rtl() ? ...)
+ gtknew('VBox', height => $::rootheight,
+ children => [
+ 0, gtknew('Image', file => 'left-top-corner'),
+ (map { (1, gtknew('Image', file => 'left-border')) } 1 .. $::rootheight),
+ 0, gtknew('Image', file => 'left-bottom-corner'),
+ ]),
+ $::stepswidth - 21, 0);
+
+ $o->{steps_widget}->show;
+
+ $root_window->add(
+ $o->{steps_window} =
+ gtknew('HBox',
+ children =>
+ [
+ 0, $o->{steps_widget},
+ 1, gtknew('Label', width => -1, height => -1),
+ ],
+ )
+ );
+
+ $root_window->show_all
}
sub update_steps_position {