[gtk+] GtkApplicationWindow: Documentation fix



commit 5e9bf518a33528a7f7264d16c906ed4b0f99b8fb
Author: Patrick Welche <prlw1 cam ac uk>
Date:   Tue Dec 23 10:35:40 2014 +0000

    GtkApplicationWindow: Documentation fix
    
    gtk_builder_add_from_string takes more than 2 parameters.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741897

 gtk/gtkapplicationwindow.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 101e194..08a0b1d 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -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"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]