gtk_signal_connect =?ISO-8859-1?Q?=BF=BF=BF?=? =?ISO-8859-1?Q?=BF?=?=?ISO-8859-1?Q?=BF?=? =?ISO-8859-1?Q?=BF?=?=?ISO-8859-1?Q?=BF?=?



I want to do that in 1 line:


  gtk_signal_connect (GTK_OBJECT (button), "clicked",
                      GTK_SIGNAL_FUNC (on_button1_clicked),
                      1);

void
on_button1_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

       g_print ("%d\n", user_data);
}


I want to do just that.¿How can I write all together? Something like
that:
    gtk_signal_connect (GTK_OBJECT (button), "clicked",
                        g_print ("%d\n", 1) , NULL);

Thanks in advance.

Guillermo



 ___________________________________________________________________ 
Consigue tu e-mail gratuito TERRA.ES
 Haz click en http://www.terra.es/correo/





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