Re:[gnomemm] libglademm and menus
- From: Dietze Sebastian <sdietze freemail hu>
- To: gnomemm-list gnome org
- Subject: Re:[gnomemm] libglademm and menus
- Date: Mon, 13 Oct 2003 23:31:22 +0200
Am Mon, den 13.10.2003 schrieb Murray Cumming Comneon com um22:04:
> Has anybody use libglademm to instantiate Glade-designed menus? I haven't
> tried, but I suspect that it isn't obvious, so we should have an example.
i'm a newbie in C++ and gtkmm/glademm/gnomemm/... programming. and this is exactly
my problem since 2 days.i don't know where is my misunderstanding. when i try to compile
my little app, i get this error message:
stopper.cc: In member function `void Stopper::connect_menu_items_to_cb()':
stopper.cc:86: request for member `connect' in `
menuitem->Gtk::Item::signal_select()', which is of non-aggregate type `
<unknown type>'
make: *** [stopper] Fehler 1
and here are the important code:
Stopper::Stopper(ustring progname) : Gnome::UI::App(progname)
{
m_refGladeMW = Gnome::Glade::Xml::create("../stopper.glade", "MainWindow");
m_refGladeMW->get_widget("MainWindow", mainwindow);
m_refGladeMW->get_widget("BtnProperty", btntimerproperty);
btntimerproperty->signal_clicked().connect( SigC::slot(*this, &Stopper::button_timerproperty_clicked) );
connect_menu_items_to_cb();
};
voidStopper::connect_menu_items_to_cb()
{
Gtk::MenuItem *menuitem;
m_refGladeMW->get_widget("FileMenuOpen", menuitem);
menuitem->signal_activate.connect( SigC::slot(*this, &Stopper::file_menu_open_activated) );
};
maybe anyone can help me. i'm sorry for my bad english.
Sebastian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]