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/gtktreemodel.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/gtktreemodel.c')
-rw-r--r-- | gtk/gtktreemodel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index 2c4a94a539..dc631aa270 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -18,9 +18,9 @@ */ #include <stdlib.h> -#include <stdio.h> #include <string.h> #include <glib.h> +#include <glib/gprintf.h> #include <gobject/gvaluecollector.h> #include "gtktreemodel.h" #include "gtktreeview.h" @@ -274,13 +274,13 @@ gtk_tree_path_to_string (GtkTreePath *path) return NULL; ptr = retval = (gchar *) g_new0 (char *, path->depth*8); - sprintf (retval, "%d", path->indices[0]); + g_sprintf (retval, "%d", path->indices[0]); while (*ptr != '\000') ptr++; for (i = 1; i < path->depth; i++) { - sprintf (ptr, ":%d", path->indices[i]); + g_sprintf (ptr, ":%d", path->indices[i]); while (*ptr != '\000') ptr++; } |