GtkMenuButton: Use view-context-menu-symbolic when direction is NONE

This makes it easier to construct gear menus: just set the direction
to 'none', no need to manually construct an image.
This commit is contained in:
Matthias Clasen 2014-07-08 08:35:33 -04:00
parent abb72efe8b
commit 89ada16998

View File

@ -597,6 +597,8 @@ set_arrow_type (GtkImage *image,
switch (arrow_type)
{
case GTK_ARROW_NONE:
gtk_image_set_from_icon_name (image, "view-context-menu-symbolic", GTK_ICON_SIZE_BUTTON);
break;
case GTK_ARROW_DOWN:
gtk_image_set_from_icon_name (image, "pan-down-symbolic", GTK_ICON_SIZE_BUTTON);
break;