Fix warnings in testgtk

This commit is contained in:
Elliot Lee 1998-01-02 04:31:37 +00:00
parent af9e316ce6
commit 2b65feb5a5
2 changed files with 6 additions and 4 deletions

View File

@ -790,7 +790,9 @@ create_handle_box ()
{ {
static GtkWidget* window = NULL; static GtkWidget* window = NULL;
GtkWidget* hbox; GtkWidget* hbox;
#if 0
GtkWidget* button; GtkWidget* button;
#endif
if (!window) if (!window)
{ {
@ -2266,7 +2268,7 @@ dnd_drop (GtkWidget *button, GdkEvent *event)
+ strlen(event->dropdataavailable.data_type) + 100); + strlen(event->dropdataavailable.data_type) + 100);
sprintf(msg, "Drop data of type %s was:\n\n%s", sprintf(msg, "Drop data of type %s was:\n\n%s",
event->dropdataavailable.data_type, event->dropdataavailable.data_type,
event->dropdataavailable.data); (char *)event->dropdataavailable.data);
lbl = gtk_label_new(msg); lbl = gtk_label_new(msg);
gtk_label_set_justify(GTK_LABEL(lbl), GTK_JUSTIFY_FILL); gtk_label_set_justify(GTK_LABEL(lbl), GTK_JUSTIFY_FILL);
g_free(msg); g_free(msg);
@ -2305,7 +2307,6 @@ create_dnd ()
GtkWidget *box1; GtkWidget *box1;
GtkWidget *box2; GtkWidget *box2;
GtkWidget *box3; GtkWidget *box3;
GtkWidget *entry;
GtkWidget *frame; GtkWidget *frame;
GtkWidget *button; GtkWidget *button;
GtkWidget *separator; GtkWidget *separator;

View File

@ -790,7 +790,9 @@ create_handle_box ()
{ {
static GtkWidget* window = NULL; static GtkWidget* window = NULL;
GtkWidget* hbox; GtkWidget* hbox;
#if 0
GtkWidget* button; GtkWidget* button;
#endif
if (!window) if (!window)
{ {
@ -2266,7 +2268,7 @@ dnd_drop (GtkWidget *button, GdkEvent *event)
+ strlen(event->dropdataavailable.data_type) + 100); + strlen(event->dropdataavailable.data_type) + 100);
sprintf(msg, "Drop data of type %s was:\n\n%s", sprintf(msg, "Drop data of type %s was:\n\n%s",
event->dropdataavailable.data_type, event->dropdataavailable.data_type,
event->dropdataavailable.data); (char *)event->dropdataavailable.data);
lbl = gtk_label_new(msg); lbl = gtk_label_new(msg);
gtk_label_set_justify(GTK_LABEL(lbl), GTK_JUSTIFY_FILL); gtk_label_set_justify(GTK_LABEL(lbl), GTK_JUSTIFY_FILL);
g_free(msg); g_free(msg);
@ -2305,7 +2307,6 @@ create_dnd ()
GtkWidget *box1; GtkWidget *box1;
GtkWidget *box2; GtkWidget *box2;
GtkWidget *box3; GtkWidget *box3;
GtkWidget *entry;
GtkWidget *frame; GtkWidget *frame;
GtkWidget *button; GtkWidget *button;
GtkWidget *separator; GtkWidget *separator;