How to add menu button to the right side of action bar

By default, child seems to be always at the left side of the title text. But I found some of the applications that has the menu button on the right side, such as:

圖片

or

圖片

How to do achieve? Is this preferable or not? Is this doable with *.ui?

Hi,

Yes, look at the docs, you can add type="end" to the child:

            <child type="end">
              <object class="GtkMenuButton">
                <property name="tooltip-text" translatable="1">Main Menu</property>
                <property name="icon-name">open-menu-symbolic</property>
                <property name="primary">true</property>
              </object>
            </child>
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.