Unable to style MenuButtons with `circular`
Steps to reproduce
- Open GTK4 demo
- Add
circular
styleclass to the menubutton
Current behavior
Currently the styleclass doesn't seem to affect the Menubutton at all,
Expected outcome
MenuButton is circular
Version information
4.0 and as of 1119a74f (Flatpak builds) OpenGL, Fedora33, Wayland.
Additional information
Here is a minimal gtkbuilder reproducer.
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0" />
<menu id="a_menu">
<section>
<item>
<attribute name="label">_Something</attribute>
</item>
</section>
</menu>
<template class="StyledMenubuttonWindow" parent="GtkApplicationWindow">
<property name="default-width">600</property>
<property name="default-height">300</property>
<child type="titlebar">
<object class="GtkHeaderBar" id="header_bar">
<child>
<object class="GtkMenuButton" id="menu">
<property name="menu_model">a_menu</property>
<property name="icon_name">view-more-symbolic</property>
<style>
<class name="circular" />
</style>
</object>
</child>
</object>
</child>
</template>
</interface>