Add basic app menu with shortcut for closing (see #14)

This commit is contained in:
coderkun 2017-04-23 11:50:41 +02:00
commit f7cbc25efc
7 changed files with 70 additions and 28 deletions

View file

@ -2,6 +2,7 @@
<gresources>
<gresource prefix="/de/coderkun/mcg">
<file>gtk.glade</file>
<file>menu.ui</file>
<file>mcg.css</file>
<file>noise-texture.png</file>
</gresource>

12
data/menu.ui Normal file
View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<menu id="app-menu">
<section>
<item>
<attribute name="action">app.quit</attribute>
<attribute name="label" translatable="yes">_Quit</attribute>
<attribute name="accel">&lt;Primary&gt;q</attribute>
</item>
</section>
</menu>
</interface>