Commit e3263d8c authored by Nalin Dahyabhai's avatar Nalin Dahyabhai

don't try to process incoming data if there isn't any (#110946). mark a

* src/vte.c(vte_terminal_eof): don't try to process incoming data if there
	isn't any (#110946).
* src/vtexft.c: mark a warning message for translation.
* src/vtegl.c: make the warning when glX isn't available debug-only.
parent d8fe8eaf
2003-04-21 nalin
* src/vte.c(vte_terminal_eof): don't try to process incoming data if
there isn't any (#110946).
* src/vtexft.c: mark a warning message for translation.
* src/vtegl.c: make the warning when glX isn't available debug-only.
2003-04-21 nalin
* src/vteglyph.c: use #if HAVE_DECL_XXX instead of #ifdef HAVE_DECL_XXX,
noted by Bob Doan.
......
......@@ -6685,7 +6685,9 @@ vte_terminal_eof(GIOChannel *channel, gpointer data)
terminal->pvt->processing = FALSE;
terminal->pvt->processing_tag = VTE_INVALID_SOURCE;
}
vte_terminal_process_incoming(terminal);
if (_vte_buffer_length(terminal->pvt->incoming) > 0) {
vte_terminal_process_incoming(terminal);
}
_vte_buffer_clear(terminal->pvt->incoming);
g_array_set_size(terminal->pvt->pending, 0);
......
......@@ -86,7 +86,9 @@ _vte_gl_check(struct _vte_draw *draw, GtkWidget *widget)
/* Check for GLX. */
if (!glXQueryExtension(display, &error, &event)) {
#ifdef VTE_DEBUG
g_warning("Unable to use GLX.\n");
#endif
return FALSE;
}
......
......@@ -35,6 +35,14 @@
#include "vtefc.h"
#include "vtexft.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) dgettext(PACKAGE, String)
#else
#define _(String) String
#define bindtextdomain(package,dir)
#endif
#define FONT_INDEX_FUDGE 10
#define CHAR_WIDTH_FUDGE 10
......@@ -657,7 +665,7 @@ _vte_xft_draw_text(struct _vte_draw *draw,
specs[j].ucs4 = requests[i].c;
j++;
} else {
g_warning("Cannot draw character U%04x.\n",
g_warning(_("Can not draw character U+%04x.\n"),
requests[i].c);
}
}
......
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