Re: Gtk::Expander and the activate signal
- From: Arne Anka <duckspammer gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: Gtk::Expander and the activate signal
- Date: Tue, 06 Dec 2005 18:27:02 +0100
Hi,
Indeed, my mistake. I got confused by http://www.pygtk.org/pygtk2reference/class-gtkexpander.html#signal-gtkexpander--activate, but obviously the GTK+ docs are a better source of information than the pygtk wrapper.
Thanks for the swift answer.
/Jacek
Murray Cumming wrote:
In fact, the GtkExpander documentation says
"
The expander widget has an expanded property which can be used to monitor
its expansion state. You should watch this property with a signal
connection as follows:
expander = gtk_expander_new_with_mnemonic ("_More Options");
g_signal_connect (expander, "notify::expanded",
G_CALLBACK (expander_callback), NULL);
"
The C++ equivalent would be
expander.property_expanded().signal_changed().connect(
sigc::mem_fun( yadda yadda )
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]