[gtk+] Make examples use search-changed signal
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Make examples use search-changed signal
- Date: Thu, 1 Aug 2013 23:06:46 +0000 (UTC)
commit c9c82720283f4887012134aaa319cd835936d0c6
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 2 00:54:00 2013 +0200
Make examples use search-changed signal
This updates the examples for the new GtkSearchEntry api.
docs/reference/gtk/getting_started.xml | 3 +--
examples/application7/window.ui | 2 +-
examples/application8/window.ui | 2 +-
examples/application9/window.ui | 2 +-
4 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/docs/reference/gtk/getting_started.xml b/docs/reference/gtk/getting_started.xml
index 7219ca0..6b56e95 100644
--- a/docs/reference/gtk/getting_started.xml
+++ b/docs/reference/gtk/getting_started.xml
@@ -820,8 +820,7 @@ example_app_window_init (ExampleAppWindow *win)
...
- priv->text_changed_handler = g_signal_connect (priv->searchentry, "search-changed",
- G_CALLBACK (search_text_changed), win);
+ gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (class), search_text_changed);
...
diff --git a/examples/application7/window.ui b/examples/application7/window.ui
index feb8fe3..ac1760e 100644
--- a/examples/application7/window.ui
+++ b/examples/application7/window.ui
@@ -41,7 +41,7 @@
<property name="visible">True</property>
<child>
<object class="GtkSearchEntry" id="searchentry">
- <signal name="changed" handler="search_text_changed"/>
+ <signal name="search-changed" handler="search_text_changed"/>
<property name="visible">True</property>
</object>
</child>
diff --git a/examples/application8/window.ui b/examples/application8/window.ui
index 8e70a8f..96801a8 100644
--- a/examples/application8/window.ui
+++ b/examples/application8/window.ui
@@ -56,7 +56,7 @@
<property name="visible">True</property>
<child>
<object class="GtkSearchEntry" id="searchentry">
- <signal name="changed" handler="search_text_changed"/>
+ <signal name="search-changed" handler="search_text_changed"/>
<property name="visible">True</property>
</object>
</child>
diff --git a/examples/application9/window.ui b/examples/application9/window.ui
index 16046db..0089666 100644
--- a/examples/application9/window.ui
+++ b/examples/application9/window.ui
@@ -73,7 +73,7 @@
<property name="visible">True</property>
<child>
<object class="GtkSearchEntry" id="searchentry">
- <signal name="changed" handler="search_text_changed"/>
+ <signal name="search-changed" handler="search_text_changed"/>
<property name="visible">True</property>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]