« Return to Thread: RadioToolButton

RadioToolButton

by Louis-Francis Ratté-Boulianne :: Rate this Message:

Reply to Author | View in Thread

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,

--
Louis-Francis

_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

 « Return to Thread: RadioToolButton