Commit 0e8b4474 authored by Nalin Dahyabhai's avatar Nalin Dahyabhai

remove some debugging g_print() calls. skip over NUL bytes (#112022). map

* src/vtebg.c(vte_bg_set_root_pixmap,vte_bg_root_pixmap): remove some debugging
	g_print() calls.
* src/iso2022.c(process_cdata): skip over NUL bytes (#112022).
* src/vte.c(vte_terminal_background_update): map the bgcolor values to a pixel
	value before setting the window background color.
* src/nativeecho.c(main): echo NUL bytes if asked to do so.
parent 69b53259
2003-05-01 nalin
* src/vtebg.c(vte_bg_set_root_pixmap,vte_bg_root_pixmap): remove some
debugging g_print() calls.
* src/iso2022.c(process_cdata): skip over NUL bytes (#112022).
* src/vte.c(vte_terminal_background_update): map the bgcolor values to
a pixel value before setting the window background color.
* src/nativeecho.c(main): echo NUL bytes if asked to do so.
2003-05-01 nalin
* src/vtebg.c, src/vtebg.h: add a singleton object for managing
copies of background images, either the desktop background, an
......
......@@ -1096,6 +1096,9 @@ process_cdata(struct _vte_iso2022_state *state, guchar *cdata, gsize length,
/* Append the unichars to the array. */
for (i = 0; &buf[i] < (char*)outbuf; i += sizeof(gunichar)) {
c = *(gunichar*)(buf + i);
if (c == '\0') {
continue;
}
if (_vte_iso2022_is_ambiguous(c)) {
width = ambiguous_width;
c = _vte_iso2022_set_encoded_width(c, width);
......
......@@ -40,10 +40,10 @@ main(int argc, char **argv)
for (i = 1; i < argc; i++) {
l = strtol(argv[i], &p, 0);
while (l > 0) {
do {
printf("%c", (unsigned char) (l & 0xff));
l = l >> 8;
}
} while (l > 0);
}
return 0;
......
......@@ -13457,6 +13457,7 @@ vte_terminal_background_update(gpointer data)
{
VteTerminal *terminal;
GtkWidget *widget;
GdkColormap *colormap;
GdkColor bgcolor;
double saturation;
......@@ -13486,6 +13487,15 @@ vte_terminal_background_update(gpointer data)
bgcolor.red = terminal->pvt->palette[VTE_DEF_BG].red;
bgcolor.green = terminal->pvt->palette[VTE_DEF_BG].green;
bgcolor.blue = terminal->pvt->palette[VTE_DEF_BG].blue;
bgcolor.pixel = 0;
colormap = _vte_draw_get_colormap(terminal->pvt->draw);
if (colormap == NULL) {
gtk_widget_ensure_style(widget);
colormap = gdk_gc_get_colormap(widget->style->fg_gc[GTK_WIDGET_STATE(widget)]);
}
if (colormap) {
gdk_rgb_find_color(colormap, &bgcolor);
}
gdk_window_set_background(widget->window, &bgcolor);
_vte_draw_set_background_color(terminal->pvt->draw, &bgcolor);
......
......@@ -120,7 +120,6 @@ vte_bg_root_pixmap(VteBg *bg)
#else
pixmap = gdk_pixmap_foreign_new(pixmaps[0]);
#endif
g_print("Got new root pixmap.\n");
}
if (pixmaps != NULL) {
g_free(pixmaps);
......@@ -366,7 +365,6 @@ vte_bg_set_root_pixmap(VteBg *bg, GdkPixmap *pixmap)
}
bg->root_pixmap = pixmap;
vte_bg_cache_prune_int(bg, TRUE);
g_print("Root pixmap changed.\n");
g_signal_emit_by_name(bg, "root-pixmap-changed");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment