summaryrefslogtreecommitdiffstats
path: root/perl-install/my_gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-01-24 13:53:54 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-01-24 13:53:54 +0000
commit7fa1fd93ecd790ae288102dcb4ec4cf3ca3bc760 (patch)
treefd53b39c8586419f7f2b128c73167ec94a644495 /perl-install/my_gtk.pm
parenta5bc70922e46a978bde60d3d51454ca03b1f7325 (diff)
downloaddrakx-backup-do-not-use-7fa1fd93ecd790ae288102dcb4ec4cf3ca3bc760.tar
drakx-backup-do-not-use-7fa1fd93ecd790ae288102dcb4ec4cf3ca3bc760.tar.gz
drakx-backup-do-not-use-7fa1fd93ecd790ae288102dcb4ec4cf3ca3bc760.tar.bz2
drakx-backup-do-not-use-7fa1fd93ecd790ae288102dcb4ec4cf3ca3bc760.tar.xz
drakx-backup-do-not-use-7fa1fd93ecd790ae288102dcb4ec4cf3ca3bc760.zip
no_comment
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r--perl-install/my_gtk.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index 988045458..99a7733ac 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -128,10 +128,12 @@ sub gtkadd($@) {
sub gtktext_insert($$) {
my ($w, $t) = @_;
+ $w->freeze;
$w->backward_delete($w->get_length);
$w->insert(undef, undef, undef, "$t\n"); #- needs \n otherwise in case of one line text the beginning is not shown (even with the vadj->set_value)
$w->set_word_wrap(1);
$w->vadj->set_value(0);
+ $w->thaw;
$w;
}