mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
GtkApplicationWindow: Documentation fix
gtk_builder_add_from_string takes more than 2 parameters. https://bugzilla.gnome.org/show_bug.cgi?id=741897
This commit is contained in:
parent
3a0ced32bf
commit
5e9bf518a3
@ -83,8 +83,7 @@
|
||||
* |[<!-- language="C" -->
|
||||
* app = gtk_application_new ();
|
||||
*
|
||||
* builder = gtk_builder_new ();
|
||||
* gtk_builder_add_from_string (builder,
|
||||
* builder = gtk_builder_new_from_string (
|
||||
* "<interface>"
|
||||
* " <menu id='menubar'>"
|
||||
* " <submenu label='_Edit'>"
|
||||
@ -92,7 +91,8 @@
|
||||
* " <item label='_Paste' action='win.paste'/>"
|
||||
* " </submenu>"
|
||||
* " </menu>"
|
||||
* "</interface>");
|
||||
* "</interface>",
|
||||
* -1);
|
||||
*
|
||||
* menubar = G_MENU_MODEL (gtk_builder_get_object (builder,
|
||||
* "menubar"));
|
||||
|
Loading…
Reference in New Issue
Block a user