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/gtkinputdialog.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/gtkinputdialog.c')
-rw-r--r-- | gtk/gtkinputdialog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkinputdialog.c b/gtk/gtkinputdialog.c index ffb35e807f..2577dbabfd 100644 --- a/gtk/gtkinputdialog.c +++ b/gtk/gtkinputdialog.c @@ -32,7 +32,7 @@ */ -#include <stdio.h> +#include <glib/gprintf.h> #include <stdlib.h> #include "gdk/gdkkeysyms.h" #include "gtkbutton.h" @@ -602,7 +602,7 @@ gtk_input_dialog_fill_axes(GtkInputDialog *inputd, GdkDevice *info) menu_item = gtk_menu_item_new_with_label (_("none")); else { - sprintf (buffer,"%d",j+1); + g_snprintf (buffer, sizeof (buffer), "%d", j+1); menu_item = gtk_menu_item_new_with_label (buffer); } g_signal_connect (menu_item, "activate", @@ -731,7 +731,7 @@ gtk_input_dialog_fill_keys(GtkInputDialog *inputd, GdkDevice *info) /* create the label */ - sprintf (buffer, "%d", i+1); + g_snprintf (buffer, sizeof (buffer), "%d", i+1); label = gtk_label_new (buffer); gtk_table_attach (GTK_TABLE (inputd->keys_list), label, 0, 1, i, i+1, 0, 0, 2, 2); |