[vte] Revert "Revert 9370647823ce29c1088c351381a07a5506b74c84"



commit 48a7718d143a03b28b4c708e054c1ea6f44c942a
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Sep 28 15:02:08 2010 -0400

    Revert "Revert 9370647823ce29c1088c351381a07a5506b74c84"
    
    This reverts commit dab50851a395069492218115caf44361b742b20c.
    
    Again, set widget background color to the terminal background color.
    This removes flicker when resizing the terminal/widget.

 src/vte.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 253e77e..c099a7f 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -12786,6 +12786,7 @@ vte_terminal_background_update(VteTerminal *terminal)
 {
 	double saturation;
 	const PangoColor *entry;
+	GdkColor color;
 
 	/* If we're not realized yet, don't worry about it, because we get
 	 * called when we realize. */
@@ -12805,6 +12806,13 @@ vte_terminal_background_update(VteTerminal *terminal)
 			 entry->red, entry->green, entry->blue,
 			 terminal->pvt->bg_opacity);
 
+	/* Set the terminal widget background color since otherwise we
+	 * won't draw it for VTE_BG_SOURCE_NONE. */
+	color.red = entry->red;
+	color.green = entry->green;
+	color.blue = entry->blue;
+	gtk_widget_modify_bg (&terminal->widget, GTK_STATE_NORMAL, &color);
+
 	_vte_draw_set_background_solid (terminal->pvt->draw, 
 					entry->red / 65535.,
 					entry->green / 65535.,



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