Re: [gtkmm] treeview single click signal
- From: joey yandle <joey divisionbyzero com>
- To: Yada Yuk <yadayuk yahoo com>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] treeview single click signal
- Date: Sun, 20 Jul 2003 19:32:52 -0400 (EDT)
Hello,
>
> I am trying to add a signal handler to the
> TreeSelection object but I get the following error.
>
Your problem is that your signal handler:
findPanel::on_selection_changed
is not a static function, so you must pass an object when you create the slot.
> /*add the signal handler*/
>
> treeSel->signal_changed().connect(SigC::slot(&findPanel::on_selection_changed));
>
should be
treeSel->signal_changed().connect(SigC::slot(*this,
&findPanel::on_selection_changed));
Since you're doing this in the findPanel ctor, you have to use *this as a
reference to the current object.
cheers,
--
joey yandle ___====-_ _-====___
www.divisionbyzero.com _--~~~#####// \\#####~~~--_
/jwy/pubkey.asc _-~##########// ( ) \\##########~-_
-############// :\^^/: \\############-
_~############// (@::@) \\############~_
~#############(( \\// ))#############~
-###############\\ (^^) //###############-
-#################\\ / "" \ //#################-
-###################\\/ \//###################-
_#/:##########/\######( /\ )######/\##########:\#_
:/ :#/\#/\#/\/ \#/\##\ : : /##/\#/ \/\#/\#/\#: \:
" :/ V V " V \#\: : : :/#/ V " V V \: "
" " " " \ : : : : / " " " "
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]