[gtk/text: 16/26] app chooser: Use editable api on search entry



commit b59a16fcdb0ceadde770304d4045e05b95b3ae92
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 17 14:47:53 2019 -0500

    app chooser: Use editable api on search entry

 gtk/gtkappchooserdialog.c  | 2 +-
 gtk/gtkappchooserprivate.h | 2 +-
 gtk/gtkappchooserwidget.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkappchooserdialog.c b/gtk/gtkappchooserdialog.c
index 80143686ec..ec5ced63b2 100644
--- a/gtk/gtkappchooserdialog.c
+++ b/gtk/gtkappchooserdialog.c
@@ -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));
diff --git a/gtk/gtkappchooserprivate.h b/gtk/gtkappchooserprivate.h
index b5fe2e9aec..754619adc7 100644
--- a/gtk/gtkappchooserprivate.h
+++ b/gtk/gtkappchooserprivate.h
@@ -45,7 +45,7 @@ struct _GtkAppChooserIface {
 
 void
 _gtk_app_chooser_widget_set_search_entry (GtkAppChooserWidget *self,
-                                          GtkEntry            *entry);
+                                          GtkEditable         *editable);
 
 
 G_END_DECLS
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c
index 62f3566a38..9ff532dc2f 100644
--- a/gtk/gtkappchooserwidget.c
+++ b/gtk/gtkappchooserwidget.c
@@ -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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]