[gtk/popover-demos: 1/3] widget-factory: Add non-modal popovers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/popover-demos: 1/3] widget-factory: Add non-modal popovers
- Date: Sat, 27 Apr 2019 18:01:32 +0000 (UTC)
commit d3ad816d63814c3471fa71834a6ef68b20bba6e7
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Apr 22 15:36:42 2019 +0000
widget-factory: Add non-modal popovers
This makes is easy to test moving the toplevel
or repositioning the parent while the popover
is shown.
demos/widget-factory/widget-factory.ui | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index 095cbdbc56..0bb77eac2e 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -2880,6 +2880,17 @@ microphone-sensitivity-medium-symbolic</property>
<child>
<object class="GtkNotebook">
<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>
<object class="GtkNotebookPage">
<property name="tab-expand">1</property>
@@ -3439,8 +3450,9 @@ bad things might happen.</property>
</widgets>
</object>
<object class="GtkPopover" id="notebook_info_popover">
+ <property name="modal">0</property>
<child>
- <object class="GtkLabel" id="notebook_info_label">
+ <object class="GtkLabel">
<property name="label">No updates at this time</property>
<accessibility>
<role type="static"/>
@@ -3448,4 +3460,15 @@ bad things might happen.</property>
</object>
</child>
</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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]