app chooser: Use editable api on search entry

This commit is contained in:
Matthias Clasen 2019-02-17 14:47:53 -05:00
parent f1012b5623
commit 7d9e63ae38
3 changed files with 3 additions and 3 deletions

View File

@ -362,7 +362,7 @@ construct_appchooser_widget (GtkAppChooserDialog *self)
g_object_unref (info);
_gtk_app_chooser_widget_set_search_entry (GTK_APP_CHOOSER_WIDGET (self->priv->app_chooser_widget),
GTK_ENTRY (self->priv->search_entry));
GTK_EDITABLE (self->priv->search_entry));
gtk_search_bar_set_key_capture_widget (GTK_SEARCH_BAR (self->priv->search_bar),
GTK_WIDGET (self));

View File

@ -45,7 +45,7 @@ struct _GtkAppChooserIface {
void
_gtk_app_chooser_widget_set_search_entry (GtkAppChooserWidget *self,
GtkEntry *entry);
GtkEditable *editable);
G_END_DECLS

View File

@ -1489,7 +1489,7 @@ gtk_app_chooser_widget_get_default_text (GtkAppChooserWidget *self)
void
_gtk_app_chooser_widget_set_search_entry (GtkAppChooserWidget *self,
GtkEntry *entry)
GtkEditable *entry)
{
gtk_tree_view_set_search_entry (GTK_TREE_VIEW (self->priv->program_list), entry);