Several elementary apps use Granite.SearchBar which is deprecated in favor of Gtk.SearchEntry as of GTK 3.12
Applications that are already migrated to GTK 3.12 should use Gtk.SearchEntry. However, if the app does not require 3.12 for something else yet, this is probably not a good idea.
List of occurrences of Granite.SearchBar in our applications:
appcenter/src/Widgets/Toolbar.vala: public SearchBar searchbar;
appcenter/src/Widgets/Toolbar.vala: searchbar = new SearchBar(_("Search Apps"));
appcenter/src/MainWindow.vala: /* SearchBar */
euclide/src/main.vala: SearchBar search_bar;
granite/lib/Widgets/Entries.vala: public class SearchBar : HintedEntry {
granite/lib/Widgets/Entries.vala: * which depends on the SearchBar's icon.
granite/lib/Widgets/Entries.vala: public SearchBar (string hint_string) {
granite/demo/GraniteDemo.vala: var search_entry = new Granite.Widgets.SearchBar ("Search");
noise/src/LibraryWindow.vala: public Granite.Widgets.SearchBar searchField { get; private set; }
noise/src/LibraryWindow.vala: searchField = new Granite.Widgets.SearchBar (_("Search Music"));
scratch/src/Widgets/SearchManager.vala: public Granite.Widgets.SearchBar search_entry;
scratch/src/Widgets/SearchManager.vala: public Granite.Widgets.SearchBar replace_entry;
scratch/src/Widgets/SearchManager.vala: search_entry = new Granite.Widgets.SearchBar (_("Find"));
scratch/src/Widgets/SearchManager.vala: replace_entry = new Granite.Widgets.SearchBar (_("Replace With")
Several elementary apps use Granite.SearchBar which is deprecated in favor of Gtk.SearchEntry as of GTK 3.12
Applications that are already migrated to GTK 3.12 should use Gtk.SearchEntry. However, if the app does not require 3.12 for something else yet, this is probably not a good idea.
Example of migration from Granite.SearchBar to Gtk.SearchEntry can be found at https:/ /code.launchpad .net/~elementar y-apps/ noise/Gtk. SearchEntry/ +merge/ 225408
List of occurrences of Granite.SearchBar in our applications: src/Widgets/ Toolbar. vala: public SearchBar searchbar; src/Widgets/ Toolbar. vala: searchbar = new SearchBar(_("Search Apps")); src/MainWindow. vala: /* SearchBar */ src/main. vala: SearchBar search_bar; lib/Widgets/ Entries. vala: public class SearchBar : HintedEntry { lib/Widgets/ Entries. vala: * which depends on the SearchBar's icon. lib/Widgets/ Entries. vala: public SearchBar (string hint_string) { demo/GraniteDem o.vala: var search_entry = new Granite. Widgets. SearchBar ("Search"); LibraryWindow. vala: public Granite. Widgets. SearchBar searchField { get; private set; } LibraryWindow. vala: searchField = new Granite. Widgets. SearchBar (_("Search Music")); src/Widgets/ SearchManager. vala: public Granite. Widgets. SearchBar search_entry; src/Widgets/ SearchManager. vala: public Granite. Widgets. SearchBar replace_entry; src/Widgets/ SearchManager. vala: search_entry = new Granite. Widgets. SearchBar (_("Find")); src/Widgets/ SearchManager. vala: replace_entry = new Granite. Widgets. SearchBar (_("Replace With")
appcenter/
appcenter/
appcenter/
euclide/
granite/
granite/
granite/
granite/
noise/src/
noise/src/
scratch/
scratch/
scratch/
scratch/