summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-30 01:55:24 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-30 01:55:24 +0000
commit168ac4cfe5a22c89d563cb01dd655ebeb0f1925c (patch)
treec9bfe8e752e18336788771b2f0c387d78d0e8750 /perl-install/mygtk2.pm
parentcf914f6c9522ef896b23516950b0d850ece5303b (diff)
downloaddrakx-168ac4cfe5a22c89d563cb01dd655ebeb0f1925c.tar
drakx-168ac4cfe5a22c89d563cb01dd655ebeb0f1925c.tar.gz
drakx-168ac4cfe5a22c89d563cb01dd655ebeb0f1925c.tar.bz2
drakx-168ac4cfe5a22c89d563cb01dd655ebeb0f1925c.tar.xz
drakx-168ac4cfe5a22c89d563cb01dd655ebeb0f1925c.zip
(_text_insert) fix rpmdrake crashing when description begins by
"Gtk2::.." (#43802)
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 014725b46..5c1f6f7c8 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -1064,11 +1064,11 @@ sub _text_insert {
foreach my $token (@$t) {
my ($item, $tag) = @$token;
my $iter1 = $buffer->get_end_iter;
- if ($item =~ /^Gtk2::Gdk::Pixbuf/) {
+ if (ref($item) =~ /^Gtk2::Gdk::Pixbuf/) {
$buffer->insert_pixbuf($iter1, $item);
next;
}
- if ($item =~ /^Gtk2::/) {
+ if (ref($item) =~ /^Gtk2::/) {
my $anchor = $buffer->create_child_anchor($iter1);
$textview->add_child_at_anchor($item, $anchor);
$textview->{anchors} ||= [];