[gtk/matthiasc/for-master] applicationwindow: Fix menu example
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] applicationwindow: Fix menu example
- Date: Fri, 4 Sep 2020 11:51:52 +0000 (UTC)
commit f28780d1eb2957b32176b0131e81c4a6d4edc808
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 4 07:48:33 2020 -0400
applicationwindow: Fix menu example
The xml syntax was wrong.
gtk/gtkapplicationwindow.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index f8ab3d406a..ce25b6700a 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -87,8 +87,14 @@
* "<interface>"
* " <menu id='menubar'>"
* " <submenu label='_Edit'>"
- * " <item label='_Copy' action='win.copy'/>"
- * " <item label='_Paste' action='win.paste'/>"
+ * " <item>"
+ * " <attribute name='label' translatable='yes'>_Copy</attribute>"
+ * " <attribute name='action'>win.copy</attribute>"
+ * " </item>"
+ * " <item>"
+ * " <attribute name='label' translatable='yes'>_Paste</attribute>"
+ * " <attribute name='action'>win.paste</attribute>"
+ * " </item>"
* " </submenu>"
* " </menu>"
* "</interface>",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]