[gnome-music/wip/gbsneto/flowbox: 5/7] searchbar: use the proper arrow icon



commit e1697e51fbafcdf44cd4cf2100ef562fcd299192
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Aug 11 17:50:44 2016 -0300

    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

 gnomemusic/searchbar.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/searchbar.py b/gnomemusic/searchbar.py
index 637c65d..ef4f499 100644
--- a/gnomemusic/searchbar.py
+++ b/gnomemusic/searchbar.py
@@ -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()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]