Hello,

I've a problem since i've implemented a menu bar, I've this message in the
debug window :





Gtk::Justi(gtk:5618): GLib-GObject-WARNING **: instance of invalid
non-instantiatable type `(null)'

(gtk:5618): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(gtk:5618): GLib-GObject-WARNING **: instance of invalid non-instantiatable
type `(null)'

(gtk:5618): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed




The problem is only when I add the bar into the window, a VBox or a HBox.
Below I've put the code for making the bar:


Gtk::Widget* PlotTest::Make_Menu(void)
{
 m_refActionGroup = Gtk::ActionGroup::create();

  //Choices menu, to demonstrate Radio items
   m_refActionGroup->add( Gtk::Action::create("PortMenu", "Port") );

  Portone = Gtk::RadioAction::create(group_userlevel1, "PortOne", "ttyS0");
  m_refActionGroup->add(Portone, sigc::mem_fun(*this,
&PlotTest::PortSelection) );

  PortTwo = Gtk::RadioAction::create(group_userlevel1, "PortTwo", "ttyS1");
  m_refActionGroup->add(PortTwo, sigc::mem_fun(*this,
&PlotTest::PortSelection) );

  m_refActionGroup->add( Gtk::Action::create("VitesseMenu", "Vitesse"));

  VitesseOne = Gtk::RadioAction::create(group_userlevel2, "VitesseOne",
"115200");
  m_refActionGroup->add(VitesseOne, sigc::mem_fun(*this,
&PlotTest::VitesseSelection) );

  VitesseTwo = Gtk::RadioAction::create(group_userlevel2, "VitesseTwo",
"38400");
  m_refActionGroup->add(VitesseTwo, sigc::mem_fun(*this,
&PlotTest::VitesseSelection) );
  VitesseThree = Gtk::RadioAction::create(group_userlevel2, "VitesseThree",
"19200");   m_refActionGroup->add(VitesseThree, sigc::mem_fun(*this,
&PlotTest::VitesseSelection) );
  VitesseFour = Gtk::RadioAction::create(group_userlevel2, "VitesseFour",
"9600");   m_refActionGroup->add(VitesseFour, sigc::mem_fun(*this,
&PlotTest::VitesseSelection) );
  m_refUIManager = Gtk::UIManager::create();
m_refUIManager->insert_action_group(m_refActionGroup);
  m_refUIManager->add_ui_from_string(ui_info);
  return m_refUIManager->get_widget("/MenuBar");


}

 I don't really know the problem because I've done the same code as in the
tutorial.

Thank you for your help.
Flo.
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to