From 05e36c30d8a913eb9627aa723068d334021a6bd0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 25 Oct 2014 16:46:12 -0400 Subject: Searchbar: Ignore some properties Don't apply the search-mode and show-close-button properties in the embedded view, since it would be confusing to have the search bar just 'disappear'. We do save these properties, so it is possible to set them up for the actual application. --- plugins/gtk+/glade-gtk-searchbar.c | 3 +++ plugins/gtk+/gtk+.xml.in | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/gtk+/glade-gtk-searchbar.c b/plugins/gtk+/glade-gtk-searchbar.c index da955fcb..9f222e81 100644 --- a/plugins/gtk+/glade-gtk-searchbar.c +++ b/plugins/gtk+/glade-gtk-searchbar.c @@ -39,6 +39,9 @@ glade_gtk_search_bar_post_create (GladeWidgetAdaptor *adaptor, gtk_container_add (GTK_CONTAINER (widget), child); g_object_set_data (G_OBJECT (widget), "child", child); } + + gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (widget), TRUE); + gtk_search_bar_set_show_close_button (GTK_SEARCH_BAR (widget), FALSE); } gboolean diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in index fe90fb6e..e9ada68b 100644 --- a/plugins/gtk+/gtk+.xml.in +++ b/plugins/gtk+/gtk+.xml.in @@ -1613,7 +1613,8 @@ glade_gtk_search_bar_remove_child glade_gtk_search_bar_replace_child - + + -- cgit v1.2.1