[libgd] build: test: Fix compiler warnings
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd] build: test: Fix compiler warnings
- Date: Wed, 13 Feb 2013 14:06:24 +0000 (UTC)
commit 6e2b849966606a01ade334a43d78344c55dd25b2
Author: Christian Persch <chpe gnome org>
Date: Wed Feb 13 13:03:00 2013 +0100
build: test: Fix compiler warnings
test-stack.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/test-stack.c b/test-stack.c
index 629a9fd..e6ecac3 100644
--- a/test-stack.c
+++ b/test-stack.c
@@ -27,7 +27,7 @@ gint
main (gint argc,
gchar ** argv)
{
- GtkWidget *window, *revealer, *box, *widget, *entry, *button, *hbox;
+ GtkWidget *window, *box, *button, *hbox;
GtkWidget *b1, *b2, *b3;
gtk_init (&argc, &argv);
@@ -73,15 +73,15 @@ main (gint argc,
button = gtk_button_new_with_label ("1");
gtk_container_add (GTK_CONTAINER (hbox), button);
- g_signal_connect (button, "clicked", (GCallback) set_visible_child_name, "1");
+ g_signal_connect (button, "clicked", (GCallback) set_visible_child_name, (gpointer) "1");
button = gtk_button_new_with_label ("2");
gtk_container_add (GTK_CONTAINER (hbox), button);
- g_signal_connect (button, "clicked", (GCallback) set_visible_child_name, "2");
+ g_signal_connect (button, "clicked", (GCallback) set_visible_child_name, (gpointer) "2");
button = gtk_button_new_with_label ("3");
gtk_container_add (GTK_CONTAINER (hbox), button);
- g_signal_connect (button, "clicked", (GCallback) set_visible_child_name, "3");
+ g_signal_connect (button, "clicked", (GCallback) set_visible_child_name, (gpointer) "3");
button = gtk_check_button_new_with_label ("humongous");
gtk_container_add (GTK_CONTAINER (hbox), button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]