Re: GTK newbie help on G_CALLBACK
- From: Debarshi Ray <rishi is lostca se>
- To: Rudra Banerjee <bnrj rudra gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GTK newbie help on G_CALLBACK
- Date: Mon, 7 May 2012 09:14:46 +0000
On Mon, May 07, 2012 at 09:06:05AM +0000, Debarshi Ray wrote:
button = gtk_button_new_with_label ("B1");
/* When the button is clicked, we call the "callback" function
* with a pointer to "button 1" as its argument */
g_signal_connect (button, "clicked",
G_CALLBACK (callback), (gpointer) "B1");
Should be "... G_CALLBACK (callback), button);"
Sorry, I misread! Ignore this part. :-)
Cheers,
Debarshi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]