[gnome-maps/wip/mlundblad/remove-app-menu: 1/2] mainWindow: Move app menu into window
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/remove-app-menu: 1/2] mainWindow: Move app menu into window
- Date: Sun, 14 Oct 2018 19:17:39 +0000 (UTC)
commit 1b9cb5d3b28bee677dba10a31786cee9e23cbaf8
Author: Marcus Lundblad <ml update uu se>
Date: Thu Oct 11 21:13:08 2018 +0200
mainWindow: Move app menu into window
Closes #128
data/ui/main-window.ui | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
---
diff --git a/data/ui/main-window.ui b/data/ui/main-window.ui
index b55da16..0d168df 100644
--- a/data/ui/main-window.ui
+++ b/data/ui/main-window.ui
@@ -1,6 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
+ <menu id="hamburgerMenu">
+ <section>
+ <item>
+ <attribute name="action">app.osm-account-setup</attribute>
+ <attribute name="label" translatable="yes">Set up OpenStreetMap Account</attribute>
+ </item>
+ </section>
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
+ <attribute name="action">win.show-help-overlay</attribute>
+ </item>
+ <item>
+ <attribute name="action">win.about</attribute>
+ <attribute name="label" translatable="yes">About Maps</attribute>
+ </item>
+ </section>
+ </menu>
<template class="Gjs_MainWindow" parent="GtkApplicationWindow">
<property name="width-request">600</property>
<property name="height-request">500</property>
@@ -94,6 +112,27 @@
</child>
</object>
</child>
+ <child>
+ <object class="GtkMenuButton">
+ <property name="visible">True</property>
+ <property name="halign">end</property>
+ <property name="valign">center</property>
+ <property name="menu-model">hamburgerMenu</property>
+ <style>
+ <class name="image-button"/>
+ </style>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="icon-size">1</property>
+ <property name="icon-name">open-menu-symbolic</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="pack-type">end</property>
+ </packing>
+ </child>
<child>
<object class="GtkToggleButton" id="toggleSidebarButton">
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]