Make examples use search-changed signal

This updates the examples for the new GtkSearchEntry api.
This commit is contained in:
Matthias Clasen 2013-08-02 00:54:00 +02:00
parent 33438a3bea
commit c9c8272028
4 changed files with 4 additions and 5 deletions

View File

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

View File

@ -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>

View File

@ -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>

View File

@ -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>