diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-04-03 17:01:50 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-04-03 17:01:50 +0000 |
commit | 547c121394ad7f7fa2c56518bd2a94686370ee42 (patch) | |
tree | 1dc853655c36e2aed9306d3528874970c7b328f4 /perl-install/ugtk2.pm | |
parent | 00800baae739e4aaeabd33b69026a76a360e094b (diff) | |
download | drakx-547c121394ad7f7fa2c56518bd2a94686370ee42.tar drakx-547c121394ad7f7fa2c56518bd2a94686370ee42.tar.gz drakx-547c121394ad7f7fa2c56518bd2a94686370ee42.tar.bz2 drakx-547c121394ad7f7fa2c56518bd2a94686370ee42.tar.xz drakx-547c121394ad7f7fa2c56518bd2a94686370ee42.zip |
after adding gtk_text_buffer_place_cursor in gtk2-perl, use it here :)
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r-- | perl-install/ugtk2.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 67f9fb774..4882cb95a 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -557,10 +557,9 @@ sub gtktext_insert { } else { $buffer->set_text($t, -1); } - #- the following lines are needed to move the cursor mark to the beginning, so that if the + #- the following line is needed to move the cursor to the beginning, so that if the #- textview has a scrollbar, it won't scroll to the bottom when focusing (#3633) - $buffer->move_mark_by_name('selection_bound', my $beg = $buffer->get_start_iter); $beg->free; - $buffer->move_mark_by_name('insert', my $end = $buffer->get_start_iter); $end->free; + $buffer->place_cursor(my $iter = $buffer->get_start_iter); $iter->free; $textview->set_wrap_mode($opts->{wrap_mode} || 'word'); $textview->set_editable($opts->{editable} || 0); $textview->set_cursor_visible($opts->{visible} || 0); |