summaryrefslogtreecommitdiff
path: root/examples/helloworld2
diff options
context:
space:
mode:
authorBST 2002 Tony Gale <gale@gtk.org>2002-08-24 11:53:26 +0000
committerTony Gale <gale@src.gnome.org>2002-08-24 11:53:26 +0000
commit1bfcf9ba16ca0ff12ae08f1bdf0a891f4ad73457 (patch)
tree8a4daa7edd4a34ce5059389b80e5d39f0352d6a6 /examples/helloworld2
parentc22b614565cd30079a0eaf7534f1a3f4f2819c6b (diff)
downloadgtk+-1bfcf9ba16ca0ff12ae08f1bdf0a891f4ad73457.tar.gz
update g_connect_signal usage
Sat Aug 24 12:46:37 BST 2002 Tony Gale <gale@gtk.org> * docs/tutorial/gtk-tut.sgml, examples/*: update g_connect_signal usage * docs/faq/gtk-faq.html: spelling/grammar fixes
Diffstat (limited to 'examples/helloworld2')
-rw-r--r--examples/helloworld2/helloworld2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/helloworld2/helloworld2.c b/examples/helloworld2/helloworld2.c
index 37c17d0a8e..5f2b27ae27 100644
--- a/examples/helloworld2/helloworld2.c
+++ b/examples/helloworld2/helloworld2.c
@@ -59,7 +59,7 @@ int main( int argc,
/* Now when the button is clicked, we call the "callback" function
* with a pointer to "button 1" as its argument */
g_signal_connect (G_OBJECT (button), "clicked",
- G_CALLBACK (callback), "button 1");
+ G_CALLBACK (callback), (gpointer) "button 1");
/* Instead of gtk_container_add, we pack this button into the invisible
* box, which has been packed into the window. */
@@ -75,7 +75,7 @@ int main( int argc,
/* Call the same callback function with a different argument,
* passing a pointer to "button 2" instead. */
g_signal_connect (G_OBJECT (button), "clicked",
- G_CALLBACK (callback), "button 2");
+ G_CALLBACK (callback), (gpointer) "button 2");
gtk_box_pack_start(GTK_BOX (box1), button, TRUE, TRUE, 0);