[gnome-documents] preview: Replace GtkArrow with GtkImage



commit 3cb229df965a95ea513a88a92be60fdc3b6430e7
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Mar 16 19:23:14 2016 +0100

    preview: Replace GtkArrow with GtkImage
    
    GtkArrow is deprecated and supposed to be replaced by a GtkImage with
    a suitable icon name. Moreoever, in the newer GTK+, they don't have a
    CSS name which makes them look odd.

 src/searchbar.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/searchbar.js b/src/searchbar.js
index 25b012b..8584994 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -206,7 +206,8 @@ const OverviewSearchbar = new Lang.Class({
 
         // create the dropdown button
         this._dropdownButton = new Gtk.ToggleButton(
-            { child: new Gtk.Arrow({ arrow_type: Gtk.ArrowType.DOWN }) });
+            { child: new Gtk.Image({ icon_name: 'go-down-symbolic',
+                                     icon_size: Gtk.IconSize.MENU }) });
         this._dropdownButton.get_style_context().add_class('raised');
         this._dropdownButton.get_style_context().add_class('image-button');
         this._dropdownButton.connect('toggled', Lang.bind(this,


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