diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2020-09-04 13:49:28 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2020-09-04 13:49:28 +0200 |
commit | 62f7395c775a57e744c2f1a671018a80e852ddeb (patch) | |
tree | 530ee438da114ccd87ba58896e777d614dbc3c39 /gtk/gtkapplicationwindow.c | |
parent | 927c4abf23f45c8c2752f9a280f38d7a19dcbae4 (diff) | |
download | gtk+-62f7395c775a57e744c2f1a671018a80e852ddeb.tar.gz |
GtkApplicationWindow: Fix menubar example
This example was using invalid attribute syntax.
Diffstat (limited to 'gtk/gtkapplicationwindow.c')
-rw-r--r-- | gtk/gtkapplicationwindow.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index f8ab3d406a..b952b644c3 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -86,9 +86,16 @@ * GtkBuilder *builder = gtk_builder_new_from_string ( * "<interface>" * " <menu id='menubar'>" - * " <submenu label='_Edit'>" - * " <item label='_Copy' action='win.copy'/>" - * " <item label='_Paste' action='win.paste'/>" + * " <submenu>" + * " <attribute name='label' translatable='yes'>_Edit</attribute>" + * " <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>", |