summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkmain-x11.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2002-12-15 01:49:01 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-12-15 01:49:01 +0000
commit8ba71578f2898d10641053cc089860b2b8d07266 (patch)
tree451f9816b2ae6e0a5427b96abac52466a135f633 /gdk/x11/gdkmain-x11.c
parentd745218d7286bc633870417ca36b33de1f715d70 (diff)
downloadgtk+-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 'gdk/x11/gdkmain-x11.c')
-rw-r--r--gdk/x11/gdkmain-x11.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index 2d8828db35..3c5f7de8af 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -26,7 +26,7 @@
#include "config.h"
-#include <stdio.h>
+#include <glib/gprintf.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -531,9 +531,9 @@ gdk_x_error (Display *display,
#ifdef G_ENABLE_DEBUG
g_error ("%s", msg);
#else /* !G_ENABLE_DEBUG */
- fprintf (stderr, "%s\n", msg);
+ g_fprintf (stderr, "%s\n", msg);
- exit(1);
+ exit (1);
#endif /* G_ENABLE_DEBUG */
}
_gdk_error_code = error->error_code;
@@ -572,7 +572,7 @@ gdk_x_io_error (Display *display)
*/
if (errno == EPIPE)
{
- fprintf (stderr,
+ g_fprintf (stderr,
"The application '%s' lost its connection to the display %s;\n"
"most likely the X server was shut down or you killed/destroyed\n"
"the application.\n",
@@ -581,7 +581,7 @@ gdk_x_io_error (Display *display)
}
else
{
- fprintf (stderr, "%s: Fatal IO error %d (%s) on X server %s.\n",
+ g_fprintf (stderr, "%s: Fatal IO error %d (%s) on X server %s.\n",
g_get_prgname (),
errno, g_strerror (errno),
display ? DisplayString (display) : gdk_get_display_arg_name ());