Re: RadioToolButton
- From: Murray Cumming <murrayc murrayc com>
- To: Louis-Francis Ratté-Boulianne <louisfrancis rb gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: RadioToolButton
- Date: Mon, 27 Oct 2008 15:52:09 +0100
On Sat, 2008-10-25 at 18:02 -0400, Louis-Francis Ratté-Boulianne wrote:
> I just want to point out an error in the code examples. In the file :
>
> http://www.gtkmm.org/docs/gtkmm-2.4/examples/book/toolbar/examplewindow.cc
>
> At line 68, the code should be
>
> Gtk::RadioButtonGroup group;
> Gtk::RadioToolButton* btn;
>
> btn = new Gtk::RadioToolButton(group, "Radio1");
> group = btn->get_group();
> m_Toolbar.append( *Gtk::manage(btn) )
>
> btn = new Gtk::RadioToolButton(group, "Radio2");
> group = btn->get_group();
> m_Toolbar.append( *Gtk::manage(btn) );
>
> btn = new Gtk::RadioToolButton(group, "Radio3");
> group = btn->get_group();
> m_Toolbar.append( *Gtk::manage(btn) );
>
>
> Thanks to correct the example, that would certainly save time to a lot
> of people,
For context: That code was commented as not working in the example.
Thanks. So, it's the "group = btn->get_group()" that makes it work. I
wonder if that is a bug or how it is meant to be done.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]