Commit 2b65feb5 authored by Elliot Lee's avatar Elliot Lee

Fix warnings in testgtk

parent af9e316c
......@@ -790,7 +790,9 @@ create_handle_box ()
{
static GtkWidget* window = NULL;
GtkWidget* hbox;
#if 0
GtkWidget* button;
#endif
if (!window)
{
......@@ -2266,7 +2268,7 @@ dnd_drop (GtkWidget *button, GdkEvent *event)
+ strlen(event->dropdataavailable.data_type) + 100);
sprintf(msg, "Drop data of type %s was:\n\n%s",
event->dropdataavailable.data_type,
event->dropdataavailable.data);
(char *)event->dropdataavailable.data);
lbl = gtk_label_new(msg);
gtk_label_set_justify(GTK_LABEL(lbl), GTK_JUSTIFY_FILL);
g_free(msg);
......@@ -2305,7 +2307,6 @@ create_dnd ()
GtkWidget *box1;
GtkWidget *box2;
GtkWidget *box3;
GtkWidget *entry;
GtkWidget *frame;
GtkWidget *button;
GtkWidget *separator;
......
......@@ -790,7 +790,9 @@ create_handle_box ()
{
static GtkWidget* window = NULL;
GtkWidget* hbox;
#if 0
GtkWidget* button;
#endif
if (!window)
{
......@@ -2266,7 +2268,7 @@ dnd_drop (GtkWidget *button, GdkEvent *event)
+ strlen(event->dropdataavailable.data_type) + 100);
sprintf(msg, "Drop data of type %s was:\n\n%s",
event->dropdataavailable.data_type,
event->dropdataavailable.data);
(char *)event->dropdataavailable.data);
lbl = gtk_label_new(msg);
gtk_label_set_justify(GTK_LABEL(lbl), GTK_JUSTIFY_FILL);
g_free(msg);
......@@ -2305,7 +2307,6 @@ create_dnd ()
GtkWidget *box1;
GtkWidget *box2;
GtkWidget *box3;
GtkWidget *entry;
GtkWidget *frame;
GtkWidget *button;
GtkWidget *separator;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment