Comment 6 for bug 835529

Revision history for this message
Paul Sladen (sladen) wrote :

nb. to self; the QML version's search box is hard-coded:

  softwarecenter/ui/gtk3/widgets/qml/SearchBox.qml:
    FocusScope::searchbox:
      source: "file:///usr/share/icons/Humanity/actions/16/edit-find.svg"
      source: "file:///usr/share/icons/Humanity/actions/16/edit-clear.svg"

Gtk3 search box uses Gtk+ STOCK_* enums:

  softwarecenter/ui/gtk3/widgets/searchentry.py:
    Gtk.Entry::SearchEntry::__init__():
      self.set_icon_from_stock(Gtk.EntryIconPosition.PRIMARY, Gtk.STOCK_FIND)
    Gtk.Entry::SearchEntry::_check_style():
      self.set_icon_from_stock(Gtk.EntryIconPosition.SECONDARY, Gtk.STOCK_CLEAR)