summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-10 15:12:09 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-10 15:12:09 +0000
commit84b4ebcea85fddcf4d788ecb6b29c9b2d708df4e (patch)
tree48db6beac95146d9851e8eeb287c9281b8a5e808 /perl-install/interactive
parent2bad2dcfdfd95a5672342d5e416b2f507eab029f (diff)
downloaddrakx-backup-do-not-use-84b4ebcea85fddcf4d788ecb6b29c9b2d708df4e.tar
drakx-backup-do-not-use-84b4ebcea85fddcf4d788ecb6b29c9b2d708df4e.tar.gz
drakx-backup-do-not-use-84b4ebcea85fddcf4d788ecb6b29c9b2d708df4e.tar.bz2
drakx-backup-do-not-use-84b4ebcea85fddcf4d788ecb6b29c9b2d708df4e.tar.xz
drakx-backup-do-not-use-84b4ebcea85fddcf4d788ecb6b29c9b2d708df4e.zip
(create_widget,create_widgets_block,create_widgets) make advanced popup display the same title as their parents
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/gtk.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index 1b19aa2b8..20cbdb6d9 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -363,7 +363,7 @@ sub add_padding {
}
sub create_widget {
- my ($o, $e, $onchange_f, $update, $ignore_ref) = @_;
+ my ($o, $common, $e, $onchange_f, $update, $ignore_ref) = @_;
my $onchange = sub {
my ($f) = @_;
@@ -431,11 +431,11 @@ sub create_widget {
} elsif ($e->{type} eq 'expander') {
$e->{grow} = 'fill';
my $children = [ if_($e->{message}, { type => 'only_label', no_indent => 1, val => \$e->{message} }), @{$e->{children}} ];
- create_widgets_block($o, $children, $update, $ignore_ref);
+ create_widgets_block($o, $common, $children, $update, $ignore_ref);
$w = gtknew('HBox', children_tight => [
gtknew('Install_Button', text => $e->{text},
clicked => sub {
- ask_fromW($o, { title => N("Advanced") }, $children) }
+ ask_fromW($o, { title => $common->{title} || N("Advanced") }, $children) }
)
]);
} elsif ($e->{type} =~ /list/) {
@@ -610,7 +610,7 @@ sub all_title_entries {
}
sub create_widgets_block {
- my ($o, $l, $update, $ignore_ref) = @_;
+ my ($o, $common, $l, $update, $ignore_ref) = @_;
my $label_sizegrp = Gtk2::SizeGroup->new('horizontal');
my $realw_sizegrp = Gtk2::SizeGroup->new('horizontal');
@@ -631,7 +631,7 @@ sub create_widgets_block {
$update->($e->{changed});
};
- create_widget($o, $e, $onchange_f, $update, $ignore_ref);
+ create_widget($o, $common, $e, $onchange_f, $update, $ignore_ref);
my $label_w;
if ($e->{label} || !$e->{no_indent}) {
@@ -728,7 +728,7 @@ sub create_widgets {
${$_->{val}} = mygtk2::asteriskize(${$_->{val}}) foreach @all_titles;
}
- my $box = create_widgets_block($o, $l, $update, \$ignore);
+ my $box = create_widgets_block($o, $common, $l, $update, \$ignore);
my $tooltips = Gtk2::Tooltips->new;
foreach my $e (@all) {