Commit 2f9f122c authored by Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto Committed by Marinus Schraal

searchbar: use the proper arrow icon

GtkArrow is a deprecated class and shouldn't be used
anymore. Instead, the GNOME-ish way is to use the
'pan-down-symbolic' icon.

This patch, then, replaces the deprecated GtkArrow and
uses a GtkImage with pan-down-symbolic icon instead.

https://bugzilla.gnome.org/show_bug.cgi?id=769772
parent 2caa35c8
......@@ -263,10 +263,10 @@ class Searchbar(Gtk.Revealer):
self._search_entry.show()
self._searchContainer.add(self._search_entry)
self._dropDownButtonArrow = Gtk.Arrow(arrow_type=Gtk.ArrowType.DOWN, shadow_type=Gtk.ShadowType.NONE)
arrow = Gtk.Image.new_from_icon_name('pan-down-symbolic',
Gtk.IconSize.BUTTON)
self._dropDownButton = Gtk.ToggleButton()
self._dropDownButton.add(self._dropDownButtonArrow)
self._dropDownButton.get_style_context().add_class('raised')
self._dropDownButton.add(arrow)
self._dropDownButton.get_style_context().add_class('image-button')
self._dropDownButton.connect("toggled", self._drop_down_button_toggled)
self._dropDownButton.show_all()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment