Re: [gtkmm] RadioElem Signal
- From: Detlef Boddin <detlef boddin org>
- To: Andreas Holzmann <Andreas Holzmann epost de>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] RadioElem Signal
- Date: 29 Oct 2002 18:48:13 +0100
How to select the right one ?
Working with something like flags or semaphore in the callback ?
r/Detlef
On Tue, 2002-10-29 at 15:51, Andreas Holzmann wrote:
> >I'm very, very new to this.
> >I made a toolbar with two buttons, when I click one I get the signals
> >from all two. How to prevent.
> >
> > using namespace Gtk::Toolbar_Helpers;
> > Gtk::RadioButton::Group gr;
> > m_Toolbar.tools().push_back(RadioElem(gr,"Vertex",SigC::slot(*this,
> >&DendoWindow::on_menu_file_new_generic)));
> > m_Toolbar.tools().push_back(RadioElem(gr,"Edge",SigC::slot(*this,
> >&DendoWindow::on_menu_others)));
>
> You cannot prevent this. This is the normal behaviour. These two
> items are radio elements of the same radio group. If you select an
> item it gets signaled because it got selected. The other item
> gets signaled because it got unselected.
>
> Andreas
>
>
>
> ________________________________________
> Online Fotoalben - jetzt kostenlos bei http://www.ePost.de
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]