mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Make examples use search-changed signal
This updates the examples for the new GtkSearchEntry api.
This commit is contained in:
parent
33438a3bea
commit
c9c8272028
@ -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);
|
||||
|
||||
...
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user