diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/eom-sidebar.c | 4 | ||||
-rw-r--r-- | src/eom-thumb-nav.c | 18 |
2 files changed, 17 insertions, 5 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); diff --git a/src/eom-thumb-nav.c b/src/eom-thumb-nav.c index 11fd211..6e1cb66 100644 --- a/src/eom-thumb-nav.c +++ b/src/eom-thumb-nav.c @@ -363,15 +363,19 @@ eom_thumb_nav_init (EomThumbNav *nav) priv->show_buttons = TRUE; - priv->button_left = gtk_button_new (); + priv->button_left = gtk_button_new (); gtk_button_set_relief (GTK_BUTTON (priv->button_left), GTK_RELIEF_NONE); +#if GTK_CHECK_VERSION (3, 14, 0) + arrow = gtk_image_new_from_icon_name ("pan-start-symbolic", GTK_ICON_SIZE_BUTTON); +#else arrow = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_ETCHED_IN); +#endif gtk_container_add (GTK_CONTAINER (priv->button_left), arrow); gtk_widget_set_size_request (GTK_WIDGET (priv->button_left), 25, 0); - gtk_box_pack_start (GTK_BOX (nav), priv->button_left, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (nav), priv->button_left, FALSE, FALSE, 0); g_signal_connect (priv->button_left, "clicked", @@ -416,17 +420,21 @@ eom_thumb_nav_init (EomThumbNav *nav) G_CALLBACK (eom_thumb_nav_adj_value_changed), nav); - gtk_box_pack_start (GTK_BOX (nav), priv->sw, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (nav), priv->sw, TRUE, TRUE, 0); - priv->button_right = gtk_button_new (); + priv->button_right = gtk_button_new (); gtk_button_set_relief (GTK_BUTTON (priv->button_right), GTK_RELIEF_NONE); +#if GTK_CHECK_VERSION (3, 14, 0) + arrow = gtk_image_new_from_icon_name ("pan-end-symbolic", GTK_ICON_SIZE_BUTTON); +#else arrow = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE); +#endif gtk_container_add (GTK_CONTAINER (priv->button_right), arrow); gtk_widget_set_size_request (GTK_WIDGET (priv->button_right), 25, 0); - gtk_box_pack_start (GTK_BOX (nav), priv->button_right, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (nav), priv->button_right, FALSE, FALSE, 0); g_signal_connect (priv->button_right, "clicked", |