[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Fwd: bug on TextBuffer and TextView
- From: "Emmanuel Rodriguez" <emmanuel rodriguez gmail com>
- To: "Dafna Hirschfeld" <dafna3 gmail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Fwd: bug on TextBuffer and TextView
- Date: Tue, 20 Jan 2009 10:43:29 +0100
2009/1/20 Dafna Hirschfeld <dafna3 gmail com>:
> Hi,
> I attached a file tmp_xc4.pl, and a gif icon with a code with the bug,
> It's wearied, the bug doesn't always appear.
> and when I comment (remove) the lines
>
> lines 51,52
> my $image = Gtk2::Image->new_from_file ("ch_scaled.gif");
> $run_button->set_image($image);
>
> or line 78
> add_to_history(($wed_arr->[0])->get_model,$cmd);
>
> the program works fine.
> It looks like those lines make the program a bit heavier, though they
> shouldn't effect the printing on the textview directly --
Thanks for the example, this helps us more. I confirm that I can
reproduce your bug. It seems as if the GtkTextView isn't refreshed
soon enough. The refresh of the animated gif appears to be having a
higher priority than the text view. I don't know if this is somehow
related: http://library.gnome.org/devel/gtk/stable/GtkTextView.html#GTK-TEXT-VIEW-PRIORITY-VALIDATE--CAPS.
You can force a redraw of the widget your self, in my case it fixed
the issue. Try the following:
Line 76:
$view->scroll_mark_onscreen($textmark);
$view->queue_draw();
Emmanuel Rodriguez
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]