summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-09 20:50:55 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-09 20:50:55 +0000
commit15f29ed90f1d313aae57b4d8220137779f11bad2 (patch)
tree2230ea3123fc3254a3d5e8ddc88c30dd8f6f3625 /perl-install/ugtk2.pm
parent260853adc7fd3267773f4d9bb4b2618d362d4333 (diff)
downloaddrakx-backup-do-not-use-15f29ed90f1d313aae57b4d8220137779f11bad2.tar
drakx-backup-do-not-use-15f29ed90f1d313aae57b4d8220137779f11bad2.tar.gz
drakx-backup-do-not-use-15f29ed90f1d313aae57b4d8220137779f11bad2.tar.bz2
drakx-backup-do-not-use-15f29ed90f1d313aae57b4d8220137779f11bad2.tar.xz
drakx-backup-do-not-use-15f29ed90f1d313aae57b4d8220137779f11bad2.zip
(gtktext_insert) make it works with both Glib-0.95/Gtk2-0.95 and
Glib-1.020/Gtk2-1.022
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index c9089a78c..c008513bf 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -608,8 +608,7 @@ sub gtktext_insert {
}
$buffer->insert($iter1, $token->[0]);
if ($token->[1]) {
- my $tag = $buffer->create_tag(rand());
- $tag->set(%{$token->[1]});
+ my $tag = $buffer->create_tag(rand(), %{$token->[1]});
$buffer->apply_tag($tag, $iter1 = $buffer->get_iter_at_offset($c), $buffer->get_end_iter);
}
}