widget-factory: Add non-modal popovers

This makes is easy to test moving the toplevel
or repositioning the parent while the popover
is shown.
This commit is contained in:
Matthias Clasen 2019-04-22 15:36:42 +00:00
parent f3747d1776
commit d3ad816d63

View File

@ -2880,6 +2880,17 @@ microphone-sensitivity-medium-symbolic</property>
<child> <child>
<object class="GtkNotebook"> <object class="GtkNotebook">
<property name="show-border">0</property> <property name="show-border">0</property>
<child type="action-end">
<object class="GtkMenuButton">
<property name="valign">center</property>
<property name="popover">notebook_info_popover2</property>
<property name="icon-name">emblem-important-symbolic</property>
<property name="relief">none</property>
<style>
<class name="circular"/>
</style>
</object>
</child>
<child> <child>
<object class="GtkNotebookPage"> <object class="GtkNotebookPage">
<property name="tab-expand">1</property> <property name="tab-expand">1</property>
@ -3439,8 +3450,9 @@ bad things might happen.</property>
</widgets> </widgets>
</object> </object>
<object class="GtkPopover" id="notebook_info_popover"> <object class="GtkPopover" id="notebook_info_popover">
<property name="modal">0</property>
<child> <child>
<object class="GtkLabel" id="notebook_info_label"> <object class="GtkLabel">
<property name="label">No updates at this time</property> <property name="label">No updates at this time</property>
<accessibility> <accessibility>
<role type="static"/> <role type="static"/>
@ -3448,4 +3460,15 @@ bad things might happen.</property>
</object> </object>
</child> </child>
</object> </object>
<object class="GtkPopover" id="notebook_info_popover2">
<property name="modal">0</property>
<child>
<object class="GtkLabel">
<property name="label">No updates here either</property>
<accessibility>
<role type="static"/>
</accessibility>
</object>
</child>
</object>
</interface> </interface>