diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-05-12 23:51:39 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-05-13 23:50:12 -0400 |
commit | 26e1b7c7d7123ba112188b5027c2d144e7040879 (patch) | |
tree | 85c3a4e400cdd34c2fa977ef2070ee33766d8dc7 /gtk/gtktoolbar.c | |
parent | 69314ce9e5d9a5005231d5a203f273e1165f7105 (diff) | |
download | gtk+-26e1b7c7d7123ba112188b5027c2d144e7040879.tar.gz |
Drop GtkArrow use in GtkToolbar
This is in preparation for GtkArrow getting deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=729564
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r-- | gtk/gtktoolbar.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index da0f3b44cf..e083292766 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -36,7 +36,6 @@ #include "gtktoolbar.h" #include "gtktoolbarprivate.h" -#include "gtkarrow.h" #include "gtkbindings.h" #include "gtkcontainerprivate.h" #include "gtkimage.h" @@ -700,7 +699,7 @@ gtk_toolbar_init (GtkToolbar *toolbar) gtk_button_set_focus_on_click (GTK_BUTTON (priv->arrow_button), FALSE); - priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE); + priv->arrow = gtk_image_new_from_icon_name ("pan-down-symbolic", GTK_ICON_SIZE_BUTTON); gtk_widget_set_name (priv->arrow, "gtk-toolbar-arrow"); gtk_widget_show (priv->arrow); gtk_container_add (GTK_CONTAINER (priv->arrow_button), priv->arrow); @@ -2542,9 +2541,9 @@ gtk_toolbar_orientation_changed (GtkToolbar *toolbar, priv->orientation = orientation; if (orientation == GTK_ORIENTATION_HORIZONTAL) - gtk_arrow_set (GTK_ARROW (priv->arrow), GTK_ARROW_DOWN, GTK_SHADOW_NONE); + gtk_image_set_from_icon_name (GTK_IMAGE (priv->arrow), "pan-down-symbolic", GTK_ICON_SIZE_BUTTON); else - gtk_arrow_set (GTK_ARROW (priv->arrow), GTK_ARROW_RIGHT, GTK_SHADOW_NONE); + gtk_image_set_from_icon_name (GTK_IMAGE (priv->arrow), "pan-end-symbolic", GTK_ICON_SIZE_BUTTON); gtk_toolbar_reconfigured (toolbar); |