diff options
author | raveit65 <[email protected]> | 2016-06-22 20:52:50 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-06-22 20:52:50 +0200 |
commit | e79e51d421e475e9236f36fd1702298d5710c463 (patch) | |
tree | bb5cfe0d9bade37084d4dab9dfc5de7e92201bcf /shell | |
parent | eef796a4e34c69526fc405376b50df708d95084b (diff) | |
download | atril-e79e51d421e475e9236f36fd1702298d5710c463.tar.bz2 atril-e79e51d421e475e9236f36fd1702298d5710c463.tar.xz |
use symbolic arrows only for gtk+-3
Diffstat (limited to 'shell')
-rw-r--r-- | shell/eggfindbar.c | 8 | ||||
-rw-r--r-- | shell/ev-sidebar.c | 4 |
2 files changed, 12 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); diff --git a/shell/ev-sidebar.c b/shell/ev-sidebar.c index d2ce9d9e..5a775a91 100644 --- a/shell/ev-sidebar.c +++ b/shell/ev-sidebar.c @@ -379,7 +379,11 @@ ev_sidebar_init (EvSidebar *ev_sidebar) FALSE, FALSE, 0); gtk_widget_show (ev_sidebar->priv->label); +#if GTK_CHECK_VERSION (3, 0, 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); |