Re: Gtk::notebook - switching tabs changes stuff outside?



On Sat, 2005-02-19 at 21:43 -0600, Sudrien wrote:
> http://svn.berlios.de/viewcvs/darimasen/trunk/src/darimasen.cpp?rev=27&view=markup
> if additional reference is needed...
> 
> I have a Gtk::Notebook, "tabber", which shows the contents of different
> directories in different tabs.  I  want to change items outside tabber
> when a different tab is selected - but I can't get the one signal
> available in 2.4.x to compile.
> 
> Abridged code:
> 
>    void Darimasen::tabberSwitched(GtkNotebookPage*, guint);
> 
> ...
> 
>   Tabber = Gtk::manage(new Gtk::Notebook);
>   Tabber->signal_switch_page.connect(sigc::mem_fun(*this,
> &Darimasen::tabberSwitched));
> 
> I get "error: insufficient contextual information to determine type"

The compiler error is not very helpful. You need 
Tabber->signal_switch_page().
instead of 
Tabber->signal_switch_page.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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