diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-12-06 23:17:41 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-12-06 23:17:41 +0000 |
commit | 41bd5bb015197c84cbd7065fd6ef95675966f259 (patch) | |
tree | 020818c458470ab3b510cfbf510ea37d9ee58627 /modules | |
parent | 03e6a3893c2f590f28b1816ae80bea49cf03b451 (diff) | |
download | pango-41bd5bb015197c84cbd7065fd6ef95675966f259.tar.gz |
Convert [sf]printf to g_[sf]printf, or, where appropriate g_printerr().
Fri Dec 6 18:07:48 2002 Owen Taylor <otaylor@redhat.com>
* modules/indic/devanagari-x.c, pango/modules.c
pango/pango-utils.c pango/pangoft2.c pango/querymodules.c:
Convert [sf]printf to g_[sf]printf, or, where
appropriate g_printerr(). (Based on patch from
Matthias Clasen, #99321)
* configure.in: Require glib-2.1.3.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/basic/basic-fc.c | 3 | ||||
-rw-r--r-- | modules/basic/basic-xft.c | 3 | ||||
-rw-r--r-- | modules/indic/devanagari-x.c | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c index 35f88657..c8c419a3 100644 --- a/modules/basic/basic-fc.c +++ b/modules/basic/basic-fc.c @@ -22,6 +22,7 @@ #include <string.h> +#include <glib/gprintf.h> #include "pangoxft.h" #include "pango-engine.h" #include "pango-utils.h" @@ -142,7 +143,7 @@ basic_engine_shape (PangoFont *font, char buf[9]; int len = (wc < 65536) ? 6 : 8; - sprintf(buf, "[%0*X]", len - 2, wc); + g_sprintf (buf, "[%0*X]", len - 2, wc); n_chars += len - 1; pango_glyph_string_set_size (glyphs, n_chars); diff --git a/modules/basic/basic-xft.c b/modules/basic/basic-xft.c index 35f88657..c8c419a3 100644 --- a/modules/basic/basic-xft.c +++ b/modules/basic/basic-xft.c @@ -22,6 +22,7 @@ #include <string.h> +#include <glib/gprintf.h> #include "pangoxft.h" #include "pango-engine.h" #include "pango-utils.h" @@ -142,7 +143,7 @@ basic_engine_shape (PangoFont *font, char buf[9]; int len = (wc < 65536) ? 6 : 8; - sprintf(buf, "[%0*X]", len - 2, wc); + g_sprintf (buf, "[%0*X]", len - 2, wc); n_chars += len - 1; pango_glyph_string_set_size (glyphs, n_chars); diff --git a/modules/indic/devanagari-x.c b/modules/indic/devanagari-x.c index ec8012e3..e81e600a 100644 --- a/modules/indic/devanagari-x.c +++ b/modules/indic/devanagari-x.c @@ -36,7 +36,6 @@ #include <glib.h> -#include <stdio.h> #include <string.h> #include "pangox.h" @@ -183,7 +182,7 @@ shuffle_one_along (gunichar *start, gunichar *end) { end--; if (*end != 0) - fprintf (stderr, "pango devanagari error, please report. bad shuffle!\n"); + g_printerr ("pango devanagari error, please report. bad shuffle!\n"); while (end > start) { end[0] = end[-1]; |