[gtk/text: 18/28] Fix the search bar example



commit 5cd169fcc0326b75c3df726bb11f6e9e2c04fb83
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 17 16:13:58 2019 -0500

    Fix the search bar example
    
    More GtkSearchBar entry -> editable fixups.

 examples/search-bar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/examples/search-bar.c b/examples/search-bar.c
index cb84e9ce06..0a42a925ce 100644
--- a/examples/search-bar.c
+++ b/examples/search-bar.c
@@ -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);
 }
 


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