Re: bug on TextBuffer and TextView

Sorry for the double spam. I forgot to include the mailing list on the
first mail.

On Mon, Jan 19, 2009 at 4:19 PM, Emmanuel Rodriguez
<emmanuel rodriguez gmail com> wrote:
On Mon, Jan 19, 2009 at 3:51 PM, Dafna Hirschfeld <dafna3 gmail com> wrote:
the code is very simple, copied from the tutorials of gtk

in one place of the program I declare the textView and the associated

my $view = Gtk2::TextView->new();
my $buffer = $view->get_buffer();
$view->set_editable (FALSE);
our $textmark =
my $scrolls = Gtk2::ScrolledWindow->new();
$scrolls->add ($view);

on a function that run according to a specific button click I insert the

 #printing the output on textview
  my $text_tag = $buffer->create_tag(undef,'font',"Sans Italic

  $buffer->insert ($buffer->get_end_iter,$out);

On Mon, Jan 19, 2009 at 12:34 PM, Emmanuel Rodriguez
<emmanuel rodriguez gmail com> wrote:

2009/1/19 Dafna Hirschfeld <dafna3 gmail com>:
I have a textView with a textBuffer associated with it.

When I start running my program and insert text to the buffer, it
appear on the textView, only after I click the textView with the mouse
add another text, it appears.
That's a strange behaviour.

That's very strange. I've complete your test and it works as expected.
Can you execute my script and confirm that if you click the 'Write'
button that you have the same behavior?

On my computer this test works as expected: once the button is clicked
the text is added to the textview.

Emmanuel Rodriguez

Description: Perl program

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]