summaryrefslogtreecommitdiff
path: root/shell/eggfindbar.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-22 20:52:50 +0200
committerraveit65 <[email protected]>2016-06-22 20:52:50 +0200
commite79e51d421e475e9236f36fd1702298d5710c463 (patch)
treebb5cfe0d9bade37084d4dab9dfc5de7e92201bcf /shell/eggfindbar.c
parenteef796a4e34c69526fc405376b50df708d95084b (diff)
downloadatril-e79e51d421e475e9236f36fd1702298d5710c463.tar.bz2
atril-e79e51d421e475e9236f36fd1702298d5710c463.tar.xz
use symbolic arrows only for gtk+-3
Diffstat (limited to 'shell/eggfindbar.c')
-rw-r--r--shell/eggfindbar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/shell/eggfindbar.c b/shell/eggfindbar.c
index 82eae53f..ee9eb6e0 100644
--- a/shell/eggfindbar.c
+++ b/shell/eggfindbar.c
@@ -331,7 +331,11 @@ egg_find_bar_init (EggFindBar *find_bar)
gtk_label_set_mnemonic_widget (GTK_LABEL (label), priv->find_entry);
/* Prev */
+#if GTK_CHECK_VERSION (3, 0, 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_NONE);
+#endif
priv->previous_button = gtk_tool_button_new (arrow, Q_("Find Pre_vious"));
gtk_tool_button_set_use_underline (GTK_TOOL_BUTTON (priv->previous_button), TRUE);
gtk_tool_item_set_is_important (priv->previous_button, TRUE);
@@ -339,7 +343,11 @@ egg_find_bar_init (EggFindBar *find_bar)
_("Find previous occurrence of the search string"));
/* Next */
+#if GTK_CHECK_VERSION (3, 0, 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
priv->next_button = gtk_tool_button_new (arrow, Q_("Find Ne_xt"));
gtk_tool_button_set_use_underline (GTK_TOOL_BUTTON (priv->next_button), TRUE);
gtk_tool_item_set_is_important (priv->next_button, TRUE);