GNOME Bugzilla – Bug 758208
GtkStackSwitcher should allow changing the icon size
Last modified: 2015-11-17 05:39:40 UTC
Created attachment 315724 [details] [review] add GtkStackSwitcher:icon-size property For an incoming design in Builder, we need a bit more control over the icon size in the stack switcher. We could, of course, just make our own switcher, but this seems useful if the pattern catches on with other applications. (We are using it for switching perspectives in Builder) The attached patch adds a GtkStackSwitcher:icon-size property which works just like GtkImage:icon-size.
Review of attachment 315724 [details] [review]: Looks ok, with these fixes. ::: gtk/gtkstackswitcher.c @@ +474,3 @@ + { + clear_switcher (switcher); + populate_switcher (switcher); Missing a g_object_notify here @@ +570,3 @@ + 0, G_MAXINT, + GTK_ICON_SIZE_MENU, + GTK_PARAM_READWRITE)); Should be G_PARAM_EXPLICIT_NOTIFY, or make distcheck will complain about excessive notification. And please add a doc comment with a Since: tag.