summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-10-25 16:46:12 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-10-25 16:46:12 -0400
commit05e36c30d8a913eb9627aa723068d334021a6bd0 (patch)
tree1109400e8888ac0e92196b653604c4f43be6b652
parent621ff59f06eeafc90cec75894c1b4ffab1a3effe (diff)
downloadglade-05e36c30d8a913eb9627aa723068d334021a6bd0.tar.gz
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.
-rw-r--r--plugins/gtk+/glade-gtk-searchbar.c3
-rw-r--r--plugins/gtk+/gtk+.xml.in3
2 files changed, 5 insertions, 1 deletions
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 @@
<remove-child-function>glade_gtk_search_bar_remove_child</remove-child-function>
<replace-child-function>glade_gtk_search_bar_replace_child</replace-child-function>
<properties>
- <property id="search-mode-enabled" save="False" default="True"/>
+ <property id="search-mode-enabled" save="True" ignore="True"/>
+ <property id="show-close-button" save="True" ignore="True"/>
</properties>
</glade-widget-class>