Re: Complete example code...
- From: Glus Xof <gtglus gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Re: Complete example code...
- Date: Fri, 25 Oct 2013 13:05:29 +0200
Thanks,
Finally, You are reason... I had the libraries wrongly configured on my system... but now, all seems OK.
Only one question more...
Which is the method to disable all one entire "submenu" (like File, Edit...) ?
With the example code, I made an unsuccessfully test (it compiles but the effect is not as attended) adding a code as follows:
[...]
//Edit menu:
Glib::RefPtr<Gio::SimpleAction> menu_edit = refActionGroup->add_action ("edit");
menu_edit->set_enabled (false);
refActionGroup->add_action("copy",
sigc::mem_fun(*this, &ExampleWindow::on_menu_others));
[...]
" <submenu>"
" <attribute name='label' translatable='yes'>_Edit</attribute>"
" <attribute name='action'>example.edit</attribute>"
" <section>"
[...]
What's wrong ?
Glus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]