[gtk/wip/matthiasc/popup4: 110/110] widget-factory: Add some nested popovers



commit 0074d57ba2997bfe3ee035a88d7e3ec10dd6f605
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Apr 23 19:00:44 2019 +0000

    widget-factory: Add some nested popovers
    
    These are mainly for stress-testing our
    popover implementations.

 demos/widget-factory/widget-factory.ui | 45 +++++++++++++++++++++++++++++++---
 1 file changed, 41 insertions(+), 4 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index 0bb77eac2e..d0994aad58 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -3397,6 +3397,7 @@ bad things might happen.</property>
             <layout>
               <property name="left-attach">1</property>
               <property name="top-attach">1</property>
+              <property name="column-span">2</property>
             </layout>
           </object>
         </child>
@@ -3409,12 +3410,24 @@ bad things might happen.</property>
             <layout>
               <property name="left-attach">1</property>
               <property name="top-attach">0</property>
+              <property name="column-span">2</property>
             </layout>
           </object>
         </child>
         <child>
-          <object class="GtkButton" id="open_popover_button">
+          <object class="GtkMenuButton">
             <property name="halign">end</property>
+            <property name="icon-name">emblem-system-symbolic</property>
+            <property name="menu-model">gear_menu</property>
+            <layout>
+              <property name="left-attach">1</property>
+              <property name="top-attach">2</property>
+            </layout>
+          </object>
+        </child>
+        <child>
+          <object class="GtkButton" id="open_popover_button">
+            <property name="halign">fill</property>
             <property name="label">_Open</property>
             <property name="use-underline">1</property>
             <property name="sensitive">0</property>
@@ -3423,7 +3436,7 @@ bad things might happen.</property>
               <class name="suggested-action"/>
             </style>
             <layout>
-              <property name="left-attach">1</property>
+              <property name="left-attach">2</property>
               <property name="top-attach">2</property>
             </layout>
           </object>
@@ -3460,15 +3473,39 @@ bad things might happen.</property>
       </object>
     </child>
   </object>
-  <object class="GtkPopover" id="notebook_info_popover2">
+  <object class="GtkPopover" id="notebook_info_popover3">
     <property name="modal">0</property>
     <child>
       <object class="GtkLabel">
-        <property name="label">No updates here either</property>
+        <property name="label">You're in too deep!</property>
         <accessibility>
           <role type="static"/>
         </accessibility>
       </object>
     </child>
   </object>
+  <object class="GtkPopover" id="notebook_info_popover2">
+    <property name="modal">0</property>
+    <child>
+      <object class="GtkBox">
+        <property name="orientation">horizontal</property>
+        <child>
+          <object class="GtkLabel">
+            <property name="label">Hidden gems:</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkMenuButton">
+            <property name="valign">center</property>
+            <property name="popover">notebook_info_popover3</property>
+            <property name="icon-name">emblem-important-symbolic</property>
+            <property name="relief">none</property>
+            <style>
+              <class name="circular"/>
+            </style>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
 </interface>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]