diff options
author | Matthias Clasen <maclas@gmx.de> | 2002-12-15 01:49:01 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-12-15 01:49:01 +0000 |
commit | 8ba71578f2898d10641053cc089860b2b8d07266 (patch) | |
tree | 451f9816b2ae6e0a5427b96abac52466a135f633 /gtk/queryimmodules.c | |
parent | d745218d7286bc633870417ca36b33de1f715d70 (diff) | |
download | gtk+-8ba71578f2898d10641053cc089860b2b8d07266.tar.gz |
Use g_printf instead of system printf. (#99327)
2002-12-15 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcalendar.c:
* gtk/gtkfilesel.c:
* gtk/gtkfontsel.c:
* gtk/gtkhruler.c:
* gtk/gtkinputdialog.c:
* gtk/gtkprogress.c:
* gtk/gtktreemodel.c:
* gtk/gtkvruler.c:
* gtk/queryimmodules.c:
* gtk/theme-bits/decompose-bits.c:
* gdk-pixbuf/gdk-pixbuf-csource.c:
* gdk-pixbuf/make-inline-pixbuf.c:
* gdk-pixbuf/queryloaders.c:
* gdk/gdkkeynames.c:
* gdk/gdkrgb.c:
* gdk/linux-fb/gdkfbmanager.c:
* gdk/win32/gdkevents-win32.c:
* gdk/win32/gdkmain-win32.c:
* gdk/win32/gdkproperty-win32.c:
* gdk/x11/gdkmain-x11.c: Use g_printf instead of system
printf. (#99327)
Diffstat (limited to 'gtk/queryimmodules.c')
-rw-r--r-- | gtk/queryimmodules.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/queryimmodules.c b/gtk/queryimmodules.c index aaff75bac5..d62658dc09 100644 --- a/gtk/queryimmodules.c +++ b/gtk/queryimmodules.c @@ -22,6 +22,7 @@ #include "config.h" #include <glib.h> +#include <glib/gprintf.h> #include <gmodule.h> #include <errno.h> @@ -29,7 +30,6 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> #endif -#include <stdio.h> #ifdef G_OS_WIN32 #define SOEXT ".dll" @@ -73,7 +73,7 @@ static void print_escaped (const char *str) { char *tmp = escape_string (str); - printf ("\"%s\" ", tmp); + g_printf ("\"%s\" ", tmp); g_free (tmp); } @@ -99,7 +99,7 @@ query_module (const char *dir, const char *name) if (!module) { - fprintf(stderr, "Cannot load module %s: %s\n", path, g_module_error()); + g_fprintf (stderr, "Cannot load module %s: %s\n", path, g_module_error()); error = TRUE; } @@ -131,8 +131,8 @@ query_module (const char *dir, const char *name) } else { - fprintf (stderr, "%s does not export GTK+ IM module API: %s\n", path, - g_module_error()); + g_fprintf (stderr, "%s does not export GTK+ IM module API: %s\n", path, + g_module_error ()); error = TRUE; } @@ -150,7 +150,7 @@ int main (int argc, char **argv) char *path; gboolean error = FALSE; - printf ("# GTK+ Input Method Modules file\n" + g_printf ("# GTK+ Input Method Modules file\n" "# Automatically generated file, do not edit\n" "#\n"); @@ -161,7 +161,7 @@ int main (int argc, char **argv) path = gtk_rc_get_im_module_path (); - printf ("# ModulesPath = %s\n#\n", path); + g_printf ("# ModulesPath = %s\n#\n", path); dirs = pango_split_file_list (path); |