where is error?



The example below segfaults or not, depending on whether standard class
is used (Gtkmm 2.4.10.)  Is there an error or is it a bug?

Paul


#include <gtkmm/main.h>
#include <gtkmm/radioaction.h>
#include <gtkmm/stock.h>


namespace
{

  class Radio_action : public Gtk::RadioAction
  {
  public:

    Radio_action (Group& group)
      : Gtk::RadioAction (group, "test", Gtk::StockID (), "", "")
    { }
  };

}


int
main (int argc, char** argv)
{
  Gtk::Main  main (argc, argv);

  Radio_action::Group  test_group;

#if 1
  // This segfaults.
  new Radio_action (test_group);
#else
  Gtk::RadioAction::create (test_group, "test");
#endif

  return 0;
}



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