From 3f1018b8d782e5d71e92a4f58ffe182d5f770f7f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 31 Aug 2005 15:46:08 +0000 Subject: allow adding text to a TextView with gtkadd --- perl-install/mygtk2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/mygtk2.pm') diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 8f45e77b7..f799f57e0 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -346,7 +346,7 @@ sub _gtk__Entry { } sub _gtk__TextView { - my ($w, $opts) = @_; + my ($w, $opts, $_class, $action) = @_; if (!$w) { $w = Gtk2::TextView->new; @@ -355,7 +355,7 @@ sub _gtk__TextView { $w->set_cursor_visible(delete $opts->{cursor_visible}) if exists $opts->{cursor_visible}; } - _text_insert($w, delete $opts->{text}) if exists $opts->{text}; + _text_insert($w, delete $opts->{text}, append => $action eq 'gtkadd') if exists $opts->{text}; $w; } -- cgit v1.2.1