Add basic app menu with shortcut for closing (see #14)
This commit is contained in:
parent
e0d01f1f18
commit
f7cbc25efc
7 changed files with 70 additions and 28 deletions
|
|
@ -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
12
data/menu.ui
Normal 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"><Primary>q</attribute>
|
||||
</item>
|
||||
</section>
|
||||
</menu>
|
||||
</interface>
|
||||
Loading…
Add table
Add a link
Reference in a new issue