summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/gtk.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index 12aeccebb..6cfedf766 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -459,7 +459,8 @@ sub create_widget {
my $button = /^gtk-/ ? gtknew('Button', image => gtknew('Image', stock => $_))
: Gtk2::Button->new(translate($_));
my $kind = $_;
- { kind => lc $kind, action => $actions->{$kind}, button => $button };
+ $kind =~ s/^gtk-go-//;
+ { kind => lc $kind, action => $actions->{$kind}, button => $button, real_kind => $_ };
} @buttons;
my $modify = find { $_->{kind} eq 'modify' } @buttons;
@@ -476,7 +477,7 @@ sub create_widget {
}
add_modify_remove_sensitive(\@buttons, $e);
- my ($images, $real_buttons) = partition { $_->{kind} =~ /^gtk-/ } @buttons;
+ my ($images, $real_buttons) = partition { $_->{real_kind} =~ /^gtk-/ } @buttons;
$real_w = gtkpack_(Gtk2::HBox->new(0,0),
1, create_scrolled_window($w),
0, gtkpack__(Gtk2::VBox->new(0,0),