[eog] EogThumbNav: Stop deprecated GtkArrow usage
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogThumbNav: Stop deprecated GtkArrow usage
- Date: Sun, 4 Jan 2015 18:23:16 +0000 (UTC)
commit 27fb2129a74a8dc2521346c597073dc44fc91422
Author: Felix Riemann <friemann gnome org>
Date: Sun Jan 4 19:19:54 2015 +0100
EogThumbNav: Stop deprecated GtkArrow usage
Use a matching GtkImage instead. Swapping the icons in RTL locales
is done automatically by the icon theme.
src/eog-thumb-nav.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/eog-thumb-nav.c b/src/eog-thumb-nav.c
index 4aa5418..1d77895 100644
--- a/src/eog-thumb-nav.c
+++ b/src/eog-thumb-nav.c
@@ -354,7 +354,7 @@ eog_thumb_nav_init (EogThumbNav *nav)
priv->button_left = gtk_button_new ();
gtk_button_set_relief (GTK_BUTTON (priv->button_left), GTK_RELIEF_NONE);
- arrow = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_ETCHED_IN);
+ arrow = gtk_image_new_from_icon_name ("pan-start-symbolic", GTK_ICON_SIZE_BUTTON);
gtk_container_add (GTK_CONTAINER (priv->button_left), arrow);
gtk_widget_set_size_request (GTK_WIDGET (priv->button_left), 25, 0);
@@ -410,7 +410,7 @@ eog_thumb_nav_init (EogThumbNav *nav)
priv->button_right = gtk_button_new ();
gtk_button_set_relief (GTK_BUTTON (priv->button_right), GTK_RELIEF_NONE);
- arrow = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
+ arrow = gtk_image_new_from_icon_name ("pan-end-symbolic", GTK_ICON_SIZE_BUTTON);
gtk_container_add (GTK_CONTAINER (priv->button_right), arrow);
gtk_widget_set_size_request (GTK_WIDGET (priv->button_right), 25, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]