GNOME Bugzilla – Bug 534526
Flickering when resizing a vte widget
Last modified: 2010-01-12 07:40:21 UTC
I'm writing an application embedding a vte widget, I do the following, in python code: rows = vte.get_row_count() cols = vte.get_column_count() vte.set_size(cols, rows+2) However, after that is called the content of the vte terminal widget flickers. It can also be observed when resizing a normal gnome-terminal widget horizontally. I do realize that redrawing the content might be the best thing to do in many cases, if so I'd at least like to have an option to avoid redraw the content upon resize
This almost fixes for me: Index: src/vte.c =================================================================== --- src/vte.c (revision 2047) +++ src/vte.c (working copy) @@ -7049,7 +7049,7 @@ vte_terminal_set_size(VteTerminal *termi } if (old_rows != terminal->row_count || old_columns != terminal->column_count) { - gtk_widget_queue_resize (&terminal->widget); + gtk_widget_queue_resize_no_redraw (&terminal->widget); /* Our visible text changed. */ vte_terminal_emit_text_modified(terminal); } Is not quite correct though.
Behdad: I tried the patch and it looks perfect for me, I can't see any flickering at all.
Can't reproduce the issue I had with it before. Committed.