parameters to signal handler and gtk_builder_connect_signals.

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown parameters to signal handler and gtk_builder_connect_signals.

by David Moffatt-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is probably one of the RTFM moments but how the heck to you connect
a parameter to signal if you use gtk_builder_connect_signals()?

I have a lot of callbacks in my forms and I don't want to write pedantic
g_signal_connect() code so I thought I would just put it in the glade
file.  That worked fine until I wanted to pass some data in.  Then I
kept getting "Gtk-WARNING **: Could not lookup object ...".  Then I read
the man page and it appears to say that you can only have one data item
which will be passed to all callbacks.   That seems rather stupid.

Can someone spare a clue?  I seem to have left all of mine in my other
pants.

--David.
_______________________________________________
gtk-list mailing list
gtk-list@...
http://mail.gnome.org/mailman/listinfo/gtk-list

Re: parameters to signal handler and gtk_builder_connect_signals.

by Tadej Borovšak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello.

Some time ago I wrote this blog post about connecting signals:
http://tadeboro.blogspot.com/2009/09/glade3-tutorial-6-signals.html

Here it is described what options do you have when connecting signals
using GtkBuilder.

Tadej

--
Tadej Borovšak
tadeboro.blogspot.com
tadeboro@...
tadej.borovsak@...
_______________________________________________
gtk-list mailing list
gtk-list@...
http://mail.gnome.org/mailman/listinfo/gtk-list