Re: Signal handler.
- From: "Nils O. Selaasdal" <noselasd frisurf no>
- To: gtk-app-devel-list gnome org
- Subject: Re: Signal handler.
- Date: Wed, 31 Dec 2003 13:02:07 +0100
On Wed, 2003-12-31 at 11:35, Keith Sharp wrote:
On Tue, 2003-12-30 at 17:37, Carlos Savoretti wrote:
Hi all of you.
My question could be rather stupid but I can't get and answer.
I need to get the signal handler already connected to a GtkTreeView,
How about: g_signal_handler_find ():
http://developer.gnome.org/doc/API/2.0/gobject/gobject-Signals.html#g-signal-handler-find
You might want to use: g_signal_handler_is_connected ():
http://developer.gnome.org/doc/API/2.0/gobject/gobject-Signals.html#g-signal-handler-is-connected
to make sure you've got the right handler.
specifically "row-activated", to reset it in a newly created instance.
And then: g_signal_handlers_disconnect_by_func ():
http://developer.gnome.org/doc/API/2.0/gobject/gobject-Signals.html#g-signal-handlers-disconnect-by-func
And then connect up your new handler.
Is it possible ?
Looks like it :-) But I've never done it myself.
Just a Q, if one destroys the treeview, won't it automatically
disconnect the signal handlers someone registred on it ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]