Re: gtk_signal_connect =?iso-8859-1?q?=BF=BF=BF=3F_=BF=3F=BF=3F_=BF=3F=BF?=?



guigtk <guigtk ole com> writes:
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);


Use a language that sucks less than C ;-)

Havoc




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