UI Designer clobber menus in ui file.
- Open a .ui file in "source view".
- Add menus. For example:
<menu id="main_menu">
<section>
<item>
<attribute name="label" translatable="yes">Quit</attribute>
<attribute name="action">app.quit</attribute>
</item>
</section>
</menu>
If I run the application with that, the gtk::Builder
object allow retrieving the main_menu
object.
Now go to the designer view, save the file there.
The menu has disappeared from the .ui file. And if I run my program, gtk::Builder
will fail to get the main_menu
object.