From 5e9bf518a33528a7f7264d16c906ed4b0f99b8fb Mon Sep 17 00:00:00 2001 From: Patrick Welche Date: Tue, 23 Dec 2014 10:35:40 +0000 Subject: [PATCH] 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 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index 101e194c07..08a0b1d3e5 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -83,8 +83,7 @@ * |[ * app = gtk_application_new (); * - * builder = gtk_builder_new (); - * gtk_builder_add_from_string (builder, + * builder = gtk_builder_new_from_string ( * "" * " " * " " @@ -92,7 +91,8 @@ * " " * " " * " " - * ""); + * "", + * -1); * * menubar = G_MENU_MODEL (gtk_builder_get_object (builder, * "menubar"));