[vte/vte-next] No need to modify bg
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-next] No need to modify bg
- Date: Sun, 22 May 2011 22:17:14 +0000 (UTC)
commit 819686c469a81ef8dafb151be90d78227358bd46
Author: Christian Persch <chpe gnome org>
Date: Tue May 3 20:18:09 2011 +0200
No need to modify bg
src/vte.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 818c716..bf2e1c4 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -11900,9 +11900,6 @@ vte_terminal_im_append_menuitems(VteTerminal *terminal, GtkMenuShell *menushell)
static gboolean
vte_terminal_background_update(VteTerminal *terminal)
{
- const GdkRGBA *entry;
- GdkColor color;
-
/* If we're not realized yet, don't worry about it, because we get
* called when we realize. */
if (! gtk_widget_get_realized (&terminal->widget)) {
@@ -11915,19 +11912,6 @@ vte_terminal_background_update(VteTerminal *terminal)
_vte_debug_print(VTE_DEBUG_MISC|VTE_DEBUG_EVENTS,
"Updating background image.\n");
- entry = &terminal->pvt->palette[VTE_DEF_BG];
- _vte_debug_print(VTE_DEBUG_BG,
- "Updating background color to rgba(%.3f,%.3f,%.3f,%.3f).\n",
- entry->red, entry->green, entry->blue, entry->alpha);
-
- /* Set the terminal widget background color since otherwise we
- * won't draw it for VTE_BG_SOURCE_NONE. */
- color.pixel = 0;
- color.red = entry->red * 65535.;
- color.green = entry->green * 65535.;
- color.blue = entry->blue * 65535.;
- gtk_widget_modify_bg (&terminal->widget, GTK_STATE_NORMAL, &color);
-
_vte_draw_set_background_pattern(terminal->pvt->draw,
terminal->pvt->bg_pattern);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]