[gtk+] Trivial: Silence a compiler warning



commit c672066fbc4f3f090d1123a940ebfc5e4031875d
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Aug 24 07:56:13 2011 -0400

    Trivial: Silence a compiler warning

 tests/prop-editor.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/prop-editor.c b/tests/prop-editor.c
index df983dc..bde45c4 100644
--- a/tests/prop-editor.c
+++ b/tests/prop-editor.c
@@ -902,10 +902,10 @@ property_widget (GObject    *object,
 
       label = gtk_label_new ("");
       button = gtk_button_new_with_label ("Properties");
-      g_object_set_data (G_OBJECT (button), "property-name", spec->name);
-      g_signal_connect (button, "clicked", 
-			G_CALLBACK (object_properties), 
-			object);
+      g_object_set_data (G_OBJECT (button), "property-name", (gpointer) spec->name);
+      g_signal_connect (button, "clicked",
+                        G_CALLBACK (object_properties),
+                        object);
 
       gtk_container_add (GTK_CONTAINER (prop_edit), label);
       gtk_container_add (GTK_CONTAINER (prop_edit), button);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]