search entry: Add a style class

There should be little need to have separate styling for search
entries, so a separate name would be a bit overkill.
This commit is contained in:
Matthias Clasen 2015-10-28 23:58:39 -04:00
parent a840a6d597
commit 56d3e42a00

View File

@ -367,6 +367,8 @@ gtk_search_entry_init (GtkSearchEntry *entry)
atk_obj = gtk_widget_get_accessible (GTK_WIDGET (entry));
if (GTK_IS_ACCESSIBLE (atk_obj))
atk_object_set_name (atk_obj, _("Search"));
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (entry)), "search");
}
/**