Fix the search bar example

More GtkSearchBar entry -> editable fixups.
This commit is contained in:
Matthias Clasen 2019-02-17 16:13:58 -05:00
parent a0454e4025
commit f1012b5623

View File

@ -28,7 +28,7 @@ activate_cb (GtkApplication *app,
menu_button = gtk_menu_button_new ();
gtk_container_add (GTK_CONTAINER (box), menu_button);
gtk_search_bar_connect_entry (GTK_SEARCH_BAR (search_bar), GTK_ENTRY (entry));
gtk_search_bar_connect_entry (GTK_SEARCH_BAR (search_bar), GTK_EDITABLE (entry));
gtk_search_bar_set_key_capture_widget (GTK_SEARCH_BAR (search_bar), window);
}