[gtk/kill-tree-menu: 13/43] gtk-demo: Remove menus from listbox demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-tree-menu: 13/43] gtk-demo: Remove menus from listbox demo
- Date: Mon, 30 Dec 2019 01:33:33 +0000 (UTC)
commit 6b691bc02d9681880c0eaeeb4f713660e5065cef
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 28 10:12:51 2019 -0500
gtk-demo: Remove menus from listbox demo
demos/gtk-demo/listbox.ui | 26 +++++++++++---------------
1 file changed, 11 insertions(+), 15 deletions(-)
---
diff --git a/demos/gtk-demo/listbox.ui b/demos/gtk-demo/listbox.ui
index 5ac7f7ecfa..c5f534c822 100644
--- a/demos/gtk-demo/listbox.ui
+++ b/demos/gtk-demo/listbox.ui
@@ -1,19 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="gtk40">
- <object class="GtkMenu" id="menu1">
- <child>
- <object class="GtkMenuItem" id="menuitem1">
- <property name="label" translatable="yes">Email message</property>
- <property name="use-underline">1</property>
- </object>
- </child>
- <child>
- <object class="GtkMenuItem" id="menuitem2">
- <property name="label" translatable="yes">Embed message</property>
- <property name="use-underline">1</property>
- </object>
- </child>
- </object>
+ <menu id="menu1">
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">Email message</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Embed message</attribute>
+ </item>
+ </section>
+ </menu>
<template class="GtkMessageRow" parent="GtkListBoxRow">
<child>
<object class="GtkGrid" id="grid1">
@@ -171,7 +167,7 @@
<object class="GtkMenuButton" id="more-button">
<property name="can-focus">1</property>
<property name="receives-default">1</property>
- <property name="popup">menu1</property>
+ <property name="menu-model">menu1</property>
<property name="relief">none</property>
<property name="label" translatable="yes">More...</property>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]