After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 534526 - Flickering when resizing a vte widget
Flickering when resizing a vte widget
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-23 18:12 UTC by Johan (not receiving bugmail) Dahlin
Modified: 2010-01-12 07:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Johan (not receiving bugmail) Dahlin 2008-05-23 18:12:12 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
Comment 1 Behdad Esfahbod 2008-05-23 20:35:08 UTC
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.
Comment 2 Johan (not receiving bugmail) Dahlin 2008-05-23 20:53:39 UTC
Behdad: I tried the patch and it looks perfect for me, I can't see any flickering at all.
Comment 3 Behdad Esfahbod 2010-01-12 07:40:21 UTC
Can't reproduce the issue I had with it before.  Committed.