[gtk+] Update template api in one more place



commit 33438a3bea553525b5b9cd6b4400624b6adbb0e9
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 2 00:52:48 2013 +0200

    Update template api in one more place
    
    The example fragments that are directly embedded in the docs
    were still using the old api.

 docs/reference/gtk/getting_started.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/docs/reference/gtk/getting_started.xml b/docs/reference/gtk/getting_started.xml
index 99ab4ad..7219ca0 100644
--- a/docs/reference/gtk/getting_started.xml
+++ b/docs/reference/gtk/getting_started.xml
@@ -479,7 +479,7 @@ example_app_window_class_init (ExampleAppWindowClass *class)
 {
   gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (class),
                                                "/org/gtk/exampleapp/window.ui");
-  gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), ExampleAppWindowPrivate, stack);
+  gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (class), ExampleAppWindow, stack);
 }
 
 ...
@@ -820,7 +820,7 @@ example_app_window_init (ExampleAppWindow *win)
 
 ...
 
-  priv->text_changed_handler = g_signal_connect (priv->searchentry, "changed",
+  priv->text_changed_handler = g_signal_connect (priv->searchentry, "search-changed",
                                                  G_CALLBACK (search_text_changed), win);
 
 ...


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