MainWindow.ui (Código)

<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface>
    <requires lib="gtk+" version="3.24"/>
    <template class="MainWindow" parent="GtkApplicationWindow">
        <property name="can_focus">False</property>
        <property name="default_width">683</property>
        <property name="default_height">384</property>
        <property name="icon">../../../assets/icons/icon.png</property>
        <child type="titlebar">
            <object class="GtkHeaderBar">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="title" translatable="yes">Gtk.Popover</property>
                <property name="subtitle" translatable="yes">Gtk.Popover</property>
                <property name="show_close_button">True</property>
                <child>
                    <object class="GtkMenuButton" id="menu-button">
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="receives_default">True</property>
                        <property name="popover">menu-popover</property>
                        <child>
                            <object class="GtkImage">
                                <property name="visible">True</property>
                                <property name="can_focus">False</property>
                                <property name="icon_name">open-menu-symbolic</property>
                            </object>
                        </child>
                    </object>
                    <packing>
                        <property name="pack_type">end</property>
                    </packing>
                </child>
            </object>
        </child>
        <child>
            <placeholder/>
        </child>
    </template>
    <object class="GtkPopover" id="menu-popover">
        <property name="can_focus">False</property>
        <property name="relative_to">menu-button</property>
        <child>
            <object class="GtkBox">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="border_width">24</property>
                <property name="orientation">vertical</property>
                <property name="spacing">6</property>
                <child>
                    <object class="GtkModelButton" id="item1">
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="receives_default">True</property>
                        <property name="text" translatable="yes">Item 1</property>
                        <signal name="clicked" handler="menu_item_clicked" swapped="no"/>
                    </object>
                    <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">0</property>
                    </packing>
                </child>
                <child>
                    <object class="GtkModelButton" id="item2">
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="receives_default">True</property>
                        <property name="text" translatable="yes">Item 2</property>
                        <signal name="clicked" handler="menu_item_clicked" swapped="no"/>
                    </object>
                    <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">1</property>
                    </packing>
                </child>
                <child>
                    <object class="GtkSeparator">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                    </object>
                    <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">2</property>
                    </packing>
                </child>
                <child>
                    <object class="GtkModelButton" id="item3">
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="receives_default">True</property>
                        <property name="text" translatable="yes">Sobre</property>
                        <signal name="clicked" handler="about" swapped="no"/>
                    </object>
                    <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">3</property>
                    </packing>
                </child>
            </object>
        </child>
    </object>
</interface>