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

Re: gEDA-user: Please test new grids for GTK PCB



On Wed, Mar 09, 2011 at 11:39:36AM +0000, jpka wrote:

> > Each signal handler has its required signature. This can be found in
> the GTK docs.
> 
> Is there any success-story about it or example using docs IRL ?

The success story would look like:

1) Look up the function ghid_button_connected()
2) the function creates a GtkButton b and calls:

    if (cb_func)
        gtk_signal_connect (GTK_OBJECT (b), "clicked",
                            GTK_SIGNAL_FUNC (cb_func), data);

3) Hence you look up signal "clicked" in GtkButton
http://library.gnome.org/devel/gtk/unstable/GtkButton.html#GtkButton-clicked

4) There you find correct callback signature:

    void user_function (GtkButton *button,
                        gpointer   user_data);
-- 
Krzysztof KoÅciuszkiewicz
"Simplicity is the ultimate sophistication" -- Leonardo da Vinci


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user