[vte] build: Fix build when using C++11 mode



commit 42ecf1a705a3ff57f3a6eafc0d1dcc594217a18a
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Fri Apr 24 00:10:10 2015 +0800

    build: Fix build when using C++11 mode
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748376

 src/vte.cc     |   10 +++++-----
 src/vtedraw.cc |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 074ad04..ee3bcdd 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -3710,7 +3710,7 @@ vte_terminal_process_incoming(VteTerminal *terminal)
        struct _vte_incoming_chunk *chunk, *next_chunk, *achunk = NULL;
 
        _vte_debug_print(VTE_DEBUG_IO,
-                       "Handler processing %"G_GSIZE_FORMAT" bytes over %"G_GSIZE_FORMAT" chunks + %d bytes 
pending.\n",
+                       "Handler processing %" G_GSIZE_FORMAT " bytes over %" G_GSIZE_FORMAT " chunks + %d 
bytes pending.\n",
                        _vte_incoming_chunks_length(terminal->pvt->incoming),
                        _vte_incoming_chunks_count(terminal->pvt->incoming),
                        terminal->pvt->pending->len);
@@ -4108,7 +4108,7 @@ next_match:
 
        _vte_debug_print (VTE_DEBUG_WORK, ")");
        _vte_debug_print (VTE_DEBUG_IO,
-                       "%ld chars and %ld bytes in %"G_GSIZE_FORMAT" chunks left to process.\n",
+                       "%ld chars and %ld bytes in %" G_GSIZE_FORMAT " chunks left to process.\n",
                        (long) unichars->len,
                        (long) _vte_incoming_chunks_length(terminal->pvt->incoming),
                        _vte_incoming_chunks_count(terminal->pvt->incoming));
@@ -4137,7 +4137,7 @@ _vte_terminal_feed_chunks (VteTerminal *terminal, struct _vte_incoming_chunk *ch
 {
        struct _vte_incoming_chunk *last;
 
-       _vte_debug_print(VTE_DEBUG_IO, "Feed %"G_GSIZE_FORMAT" bytes, in %"G_GSIZE_FORMAT" chunks.\n",
+       _vte_debug_print(VTE_DEBUG_IO, "Feed %" G_GSIZE_FORMAT " bytes, in %" G_GSIZE_FORMAT " chunks.\n",
                        _vte_incoming_chunks_length(chunks),
                        _vte_incoming_chunks_count(chunks));
 
@@ -5454,7 +5454,7 @@ vte_terminal_paste_cb(GtkClipboard *clipboard, const gchar *text, gpointer data)
 
        if (text != NULL) {
                _vte_debug_print(VTE_DEBUG_SELECTION,
-                               "Pasting %"G_GSIZE_FORMAT" UTF-8 bytes.\n",
+                               "Pasting %" G_GSIZE_FORMAT " UTF-8 bytes.\n",
                                strlen(text));
                if (!g_utf8_validate(text, -1, NULL)) {
                        g_warning(_("Error (%s) converting data for child, dropping."), g_strerror(EINVAL));
@@ -5974,7 +5974,7 @@ vte_terminal_copy_cb(GtkClipboard *clipboard, GtkSelectionData *data,
        if (terminal->pvt->selection != NULL) {
                _VTE_DEBUG_IF(VTE_DEBUG_SELECTION) {
                        int i;
-                       g_printerr("Setting selection (%"G_GSIZE_FORMAT" UTF-8 bytes.)\n",
+                       g_printerr("Setting selection (%" G_GSIZE_FORMAT " UTF-8 bytes.)\n",
                                strlen(terminal->pvt->selection));
                        for (i = 0; terminal->pvt->selection[i] != '\0'; i++) {
                                g_printerr("0x%04x\n",
diff --git a/src/vtedraw.cc b/src/vtedraw.cc
index f71790a..5d0fe55 100644
--- a/src/vtedraw.cc
+++ b/src/vtedraw.cc
@@ -1496,7 +1496,7 @@ _vte_draw_text (struct _vte_draw *draw,
                        g_string_append_unichar (string, requests[n].c);
                }
                str = g_string_free (string, FALSE);
-               g_printerr ("draw_text (\"%s\", len=%"G_GSIZE_FORMAT", color=(%d,%d,%d,%d), %s - %s)\n",
+               g_printerr ("draw_text (\"%s\", len=%" G_GSIZE_FORMAT ", color=(%d,%d,%d,%d), %s - %s)\n",
                                str, n_requests, color->red, color->green, color->blue, alpha,
                                (style & VTE_DRAW_BOLD)   ? "bold"   : "normal",
                                (style & VTE_DRAW_ITALIC) ? "italic" : "regular");


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