summaryrefslogtreecommitdiff
path: root/src/eom-sidebar.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2015-09-02 17:03:24 +0200
committerinfirit <[email protected]>2015-09-06 13:08:32 +0200
commitba88c34448a631f976351150a5f2fa4daec7cb95 (patch)
treee55d9c2d15235472ecc57dbcb1add770fdb8d1a3 /src/eom-sidebar.c
parentb8278cd18980f51a64053d334febf2fd5fe4de94 (diff)
downloadeom-ba88c34448a631f976351150a5f2fa4daec7cb95.tar.bz2
eom-ba88c34448a631f976351150a5f2fa4daec7cb95.tar.xz
Gtk3: Stop deprecated GtkArrow usage
Use a matching GtkImage instead Since gtkarrow scaling doesn't work in themes, the arrow displays almost to huge and looks ugly. taken from: https://git.gnome.org/browse/eog/commit/?id=096806f https://git.gnome.org/browse/eog/commit/?id=27fb212
Diffstat (limited to 'src/eom-sidebar.c')
-rw-r--r--src/eom-sidebar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eom-sidebar.c b/src/eom-sidebar.c
index b6eaa8d..da3344e 100644
--- a/src/eom-sidebar.c
+++ b/src/eom-sidebar.c
@@ -446,7 +446,11 @@ eom_sidebar_init (EomSidebar *eom_sidebar)
gtk_widget_show (eom_sidebar->priv->label);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ arrow = gtk_image_new_from_icon_name ("pan-down-symbolic", GTK_ICON_SIZE_BUTTON);
+#else
arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
+#endif
gtk_box_pack_end (GTK_BOX (select_hbox), arrow, FALSE, FALSE, 0);
gtk_widget_show (arrow);