diff options
author | raveit65 <[email protected]> | 2016-08-07 14:40:09 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-08-07 16:53:18 +0200 |
commit | dc3424d9f4687e0434b70c91fdfb399bb87c9433 (patch) | |
tree | e27bb3c9bcdaa4feffc5a6d77989373460c5c95a | |
parent | 1e8dae5bb6ad57ea71cef146a55c269f168dd010 (diff) | |
download | mate-utils-dc3424d9f4687e0434b70c91fdfb399bb87c9433.tar.bz2 mate-utils-dc3424d9f4687e0434b70c91fdfb399bb87c9433.tar.xz |
GTK+-3 logvie-findbar: avoid deprecated gtk_arrow_new ()
-rw-r--r-- | logview/src/logview-findbar.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/logview/src/logview-findbar.c b/logview/src/logview-findbar.c index 72cf9ebd..1ccf3fa0 100644 --- a/logview/src/logview-findbar.c +++ b/logview/src/logview-findbar.c @@ -192,7 +192,11 @@ logview_findbar_init (LogviewFindbar *findbar) gtk_widget_show_all (GTK_WIDGET (item)); /* "Previous" and "Next" buttons */ +#if GTK_CHECK_VERSION (3, 0, 0) + w = gtk_image_new_from_icon_name ("pan-start-symbolic", GTK_ICON_SIZE_BUTTON); +#else w = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_NONE); +#endif priv->back_button = gtk_tool_button_new (w, _("Find Previous")); gtk_tool_item_set_is_important (priv->back_button, TRUE); gtk_tool_item_set_tooltip_text (priv->back_button, @@ -200,7 +204,11 @@ logview_findbar_init (LogviewFindbar *findbar) gtk_toolbar_insert (gtoolbar, priv->back_button, -1); gtk_widget_show_all (GTK_WIDGET (priv->back_button)); +#if GTK_CHECK_VERSION (3, 0, 0) + w = gtk_image_new_from_icon_name ("pan-end-symbolic", GTK_ICON_SIZE_BUTTON); +#else w = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE); +#endif priv->forward_button = gtk_tool_button_new (w, _("Find Next")); gtk_tool_item_set_is_important (priv->forward_button, TRUE); gtk_tool_item_set_tooltip_text (priv->forward_button, |