[gssdp/wip/modern-gtk: 3/6] wip: Move window menu to sniffer ui
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp/wip/modern-gtk: 3/6] wip: Move window menu to sniffer ui
- Date: Mon, 12 Apr 2021 17:56:40 +0000 (UTC)
commit df569c3725f021b119ed1a454aedb2a9dfbec3d6
Author: Jens Georg <mail jensge org>
Date: Tue Oct 6 23:17:39 2020 +0200
wip: Move window menu to sniffer ui
tools/main-window.ui | 19 +++++++++++++++++++
tools/window-menu.ui | 18 ------------------
2 files changed, 19 insertions(+), 18 deletions(-)
---
diff --git a/tools/main-window.ui b/tools/main-window.ui
index b579d1e..d749021 100644
--- a/tools/main-window.ui
+++ b/tools/main-window.ui
@@ -32,6 +32,24 @@
<column type="GDateTime"/>
</columns>
</object>
+ <menu id="sniffer-window-menu">
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">Show packet details</attribute>
+ <attribute name="action">win.show-packet-details</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Address Filter…</attribute>
+ <attribute name="action">win.show-address-filter</attribute>
+ </item>
+ </section>
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_About</attribute>
+ <attribute name="action">win.about</attribute>
+ </item>
+ </section>
+ </menu>
<template class="GSSDPDeviceSnifferMainWindow" parent="GtkApplicationWindow">
<property name="can_focus">False</property>
<property name="can_focus">False</property>
@@ -128,6 +146,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="menu-model">sniffer-window-menu</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
diff --git a/tools/window-menu.ui b/tools/window-menu.ui
index eae5745..a6bd31c 100644
--- a/tools/window-menu.ui
+++ b/tools/window-menu.ui
@@ -2,24 +2,6 @@
<!-- Generated with glade 3.22.0 -->
<interface>
<requires lib="gtk+" version="3.12"/>
- <menu id="sniffer-window-menu">
- <section>
- <item>
- <attribute name="label" translatable="yes">Show packet details</attribute>
- <attribute name="action">win.show-packet-details</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Address Filter…</attribute>
- <attribute name="action">win.show-address-filter</attribute>
- </item>
- </section>
- <section>
- <item>
- <attribute name="label" translatable="yes">_About</attribute>
- <attribute name="action">win.about</attribute>
- </item>
- </section>
- </menu>
<menu id="sniffer-context-menu">
<section>
<item>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]