[gnome-hispano] g_signal_connect



Hola,

Para conectar seÃales y callbacks, Âusamos las macros G_OBJECT y G_CALLBACK, o mejor GTK_OBJECT y 
GTK_SIGNAL_FUNC? Lo he visto de ambas formas y no acabo de ver la diferencia.

    g_signal_connect (G_OBJECT (button), "click",
                        G_CALLBACK (function), NULL);
    
    g_signal_connect (GTK_OBJECT (button), "click",
                        GTK_SIGNAL_FUNC (function), NULL);
    



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