where is error?
- From: Paul Pogonyshev <pogonyshev gmx net>
- To: gtkmm-list gnome org
- Subject: where is error?
- Date: Fri, 4 Aug 2006 23:55:23 +0300
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]