Skip to content

Instantly share code, notes, and snippets.

@feliwir
Created March 24, 2022 14:41
Show Gist options
  • Save feliwir/c53f15a130139fc4b2a843bb07cf6209 to your computer and use it in GitHub Desktop.
Save feliwir/c53f15a130139fc4b2a843bb07cf6209 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0" />
<menu id="primary-menu">
<section>
<item>
<attribute name="label" translatable="yes">_Open</attribute>
<attribute name="action">win.open</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Help</attribute>
<attribute name="action">app.help</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Voyager</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
<template class="VoyagerWindow" parent="GtkApplicationWindow">
<property name="can_focus">False</property>
<property name="title" translatable="yes">Voyager</property>
<property name="default_width">800</property>
<property name="default_height">600</property>
<child type="titlebar">
<object class="GtkHeaderBar">
<child type="end">
<object class="GtkMenuButton" id="menu_button">
<property name="tooltip-text" translatable="yes">Menu</property>
<property name="menu_model">primary-menu</property>
<property name="icon_name">open-menu-symbolic</property>
<property name="tooltip-text" translatable="yes">Main Menu</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<child>
<object class="GtkScrolledWindow">
<property name="hexpand">true</property>
<property name="halign">fill</property>
<property name="vexpand">true</property>
<property name="valign">fill</property>
<child>
<object class="GtkGridView"></object>
</child>
</object>
</child>
<child>
<object class="VoyagerImageMap" id="image_map">
<property name="halign">fill</property>
<property name="hexpand">true</property>
<property name="vexpand">true</property>
<property name="valign">fill</property>
</object>
</child>
</object>
</child>
</template>
</interface>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment