Re: [gtkmm] Paned



On Tue, 10 Sep 2002 08:39:31 +0200
Armin van der Togt <A vanderTogt its tudelft nl> wrote:

> 
> Hi,
> 
> I've got a small problem with a Paned. I want to detect whether the
> handle moves, but my callback function never gets called. This is what I
> tried:
> 
> m_FileList.signal_move_handle().connect(
>    slot(*this, &MyClass::OnPanedHandleMoved));
> 
> I also tried connecting it before the others:
> 
> m_FileList.signal_move_handle().connect(
>    slot(*this, &MyClass::OnPanedHandleMoved), false);
> 
> And this is my callback:
> 
> bool MyClass::OnPanedHandleMoved(Gtk::ScrollType s)
> {
>    std::cout << "OnPanedHandleMoved" << std::endl;
>    return false;
> }
> 
I also had problems with this a few weeks ago. I had to save the paned position to my configuration file. I solved the problem by saving the position upon destruction of the class.

Maybe it's time for a bug report?

/Daniel

> I also tried connecting a callback to the signal_accept_position() but
> that doesn't seem to be called either. Is this a bug, or an I doing
> something terribly wrong here? Signals from other widgets work fine.
> 
> Armin
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 



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