forked from AuroraMiddleware/gtk
use g_snprintf, eliminate need for string.h include string.h, for strlen
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h * gtk/testrgb.c: include string.h, for strlen
This commit is contained in:
parent
6413a421f1
commit
600ef4e7d1
@ -1,3 +1,8 @@
|
||||
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
|
||||
* gtk/testrgb.c: include string.h, for strlen
|
||||
|
||||
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* configure.in: Add a case for success in
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
|
||||
* gtk/testrgb.c: include string.h, for strlen
|
||||
|
||||
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* configure.in: Add a case for success in
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
|
||||
* gtk/testrgb.c: include string.h, for strlen
|
||||
|
||||
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* configure.in: Add a case for success in
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
|
||||
* gtk/testrgb.c: include string.h, for strlen
|
||||
|
||||
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* configure.in: Add a case for success in
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
|
||||
* gtk/testrgb.c: include string.h, for strlen
|
||||
|
||||
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* configure.in: Add a case for success in
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
|
||||
* gtk/testrgb.c: include string.h, for strlen
|
||||
|
||||
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* configure.in: Add a case for success in
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
|
||||
* gtk/testrgb.c: include string.h, for strlen
|
||||
|
||||
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* configure.in: Add a case for success in
|
||||
|
@ -1,4 +1,3 @@
|
||||
#include <string.h>
|
||||
#include "gtk/gtk.h"
|
||||
|
||||
/* Target side drag signals */
|
||||
@ -454,7 +453,7 @@ popup_cb (gpointer data)
|
||||
for (j=0; j<3; j++)
|
||||
{
|
||||
char buffer[128];
|
||||
sprintf(buffer, "%d,%d", i, j);
|
||||
g_snprintf(buffer, sizeof(buffer), "%d,%d", i, j);
|
||||
button = gtk_button_new_with_label (buffer);
|
||||
gtk_table_attach (GTK_TABLE (table), button, i, i+1, j, j+1,
|
||||
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "gtk.h"
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#include <string.h>
|
||||
#include "gtk/gtk.h"
|
||||
|
||||
/* Target side drag signals */
|
||||
@ -454,7 +453,7 @@ popup_cb (gpointer data)
|
||||
for (j=0; j<3; j++)
|
||||
{
|
||||
char buffer[128];
|
||||
sprintf(buffer, "%d,%d", i, j);
|
||||
g_snprintf(buffer, sizeof(buffer), "%d,%d", i, j);
|
||||
button = gtk_button_new_with_label (buffer);
|
||||
gtk_table_attach (GTK_TABLE (table), button, i, i+1, j, j+1,
|
||||
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "gtk.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user