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:
Patrick Welche 2014-12-23 10:35:40 +00:00
parent 3a0ced32bf
commit 5e9bf518a3

View File

@ -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"));