summaryrefslogtreecommitdiffstats
path: root/perl-install/install_gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-09-15 21:34:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-09-15 21:34:08 +0000
commitbd30c2f68c8a6bb2a690354998748fb4e1bf2b05 (patch)
tree1b54897e73546511a3923be39f07c1071b42b7f2 /perl-install/install_gtk.pm
parentdb9344149320870fd92d24b704f673e4880b2b6a (diff)
downloaddrakx-bd30c2f68c8a6bb2a690354998748fb4e1bf2b05.tar
drakx-bd30c2f68c8a6bb2a690354998748fb4e1bf2b05.tar.gz
drakx-bd30c2f68c8a6bb2a690354998748fb4e1bf2b05.tar.bz2
drakx-bd30c2f68c8a6bb2a690354998748fb4e1bf2b05.tar.xz
drakx-bd30c2f68c8a6bb2a690354998748fb4e1bf2b05.zip
no_comment
Diffstat (limited to 'perl-install/install_gtk.pm')
-rw-r--r--perl-install/install_gtk.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/perl-install/install_gtk.pm b/perl-install/install_gtk.pm
index 53a18e444..92b1ef797 100644
--- a/perl-install/install_gtk.pm
+++ b/perl-install/install_gtk.pm
@@ -71,12 +71,12 @@ widget "*Steps*" style "small-font"
#------------------------------------------------------------------------------
sub create_big_help {
+ my ($o) = @_;
my $w = my_gtk->new('', grab => 1, force_position => [ $::stepswidth, $::logoheight ]);
$w->{rwindow}->set_usize($::logowidth, $::rootheight - $::logoheight);
gtkadd($w->{window},
gtkpack_(new Gtk::VBox(0,0),
- 1, createScrolledWindow(gtktext_insert(new Gtk::Text,
- formatAlaTeX(_ deref($help::steps{$::o->{step}})))),
+ 1, createScrolledWindow(gtktext_insert(new Gtk::Text, $o->{current_help})),
0, gtksignal_connect(my $ok = new Gtk::Button(_("Ok")), "clicked" => sub { Gtk->main_quit }),
));
$ok->grab_focus;
@@ -102,11 +102,10 @@ sub create_help_window {
my $pixmap = new Gtk::Pixmap(gtkcreate_xpm($w->{window}, "$ENV{SHARE_PATH}/help.xpm"));
gtkadd($w->{window},
gtkpack_(new Gtk::HBox(0,-2),
- 0, gtkadd(gtksignal_connect(new Gtk::Button, clicked => \&create_big_help), $pixmap),
+ 0, gtkadd(gtksignal_connect(new Gtk::Button, clicked => sub { create_big_help($o) }), $pixmap),
1, createScrolledWindow($o->{help_window_text} = new Gtk::Text),
));
- gtktext_insert($o->{help_window_text}, $o->{step} ? formatAlaTeX(_ deref($help::steps{$o->{step}})) : '');
-
+ $o->set_help($o->{step}) if $o->{step};
$w->show;
$o->{help_window} = $w;
}