[gtk] treeview: Don't assume search widget is a GtkEntry



commit e54ce8f3281abf0579dec4cce1b4fd67e3c62736
Author: Timm Bäder <mail baedert org>
Date:   Sat Feb 23 04:41:42 2019 +0100

    treeview: Don't assume search widget is a GtkEntry
    
    Maybe it's a GtkText!

 gtk/gtktreeview.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index b9ec23b274..77de04413c 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -13793,7 +13793,7 @@ gtk_tree_view_search_window_hide (GtkWidget   *search_window,
       /* send focus-in event */
       send_focus_change (GTK_WIDGET (tree_view->priv->search_entry), device, FALSE);
       gtk_widget_hide (search_window);
-      gtk_entry_set_text (GTK_ENTRY (tree_view->priv->search_entry), "");
+      gtk_editable_set_text (GTK_EDITABLE(tree_view->priv->search_entry), "");
       send_focus_change (GTK_WIDGET (tree_view), device, TRUE);
     }
 }


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