[calls/wip/ui-manage-accounts: 19/26] main-window: Add menu button




commit b593325162773ac35996dae29a406ae76ec825af
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date:   Fri Apr 23 01:14:26 2021 +0200

    main-window: Add menu button
    
    This will be used to manage VoIP accounts (SIP), show the About dialog
    and so on. We will leave this hidden for now.

 src/ui/main-window.ui | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 62 insertions(+), 1 deletion(-)
---
diff --git a/src/ui/main-window.ui b/src/ui/main-window.ui
index c6393aac..68c3edde 100644
--- a/src/ui/main-window.ui
+++ b/src/ui/main-window.ui
@@ -78,6 +78,23 @@
             <property name="title" bind-source="CallsMainWindow" bind-property="title" 
bind-flags="sync-create"/>
           </object>
         </child>
+        <child>
+          <object class="GtkMenuButton">
+            <property name="visible">False</property>
+            <property name="can_focus">False</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>
   </template>
@@ -89,7 +106,7 @@
     <property name="default-height">200</property>
     <signal name="delete-event" handler="gtk_widget_hide_on_delete" object="ussd_dialog" swapped="yes"/>
     <child type="titlebar">
-      <object class="GtkHeaderBar">
+      <object class="HdyHeaderBar">
         <property name="visible">True</property>
         <property name="show-close-button">False</property>
         <property name="title" translatable="yes">USSD</property>
@@ -191,4 +208,48 @@
     </child>
   </object>
 
+  <object class="GtkPopoverMenu" id="menu_popover">
+    <child>
+      <object class="GtkBox">
+        <property name="visible">True</property>
+        <property name="orientation">vertical</property>
+        <property name="can_focus">False</property>
+        <property name="margin">12</property>
+        <property name="spacing">6</property>
+        <child>
+          <object class="GtkModelButton">
+            <property name="visible">True</property>
+            <property name="text" translatable="yes">VoIP Accounts</property>
+            <!--<property name="action-name">app.voip-accounts</property>-->
+          </object>
+        </child>
+        <child>
+          <object class="GtkSeparator">
+            <property name="visible">True</property>
+            <property name="orientation">vertical</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkModelButton">
+            <property name="visible">True</property>
+            <property name="text" translatable="yes">Keyboard shortcuts</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkModelButton">
+            <property name="visible">True</property>
+            <property name="text" translatable="yes">Help</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkModelButton">
+            <property name="visible">True</property>
+            <property name="text" translatable="yes">About Calls</property>
+          </object>
+        </child>
+
+      </object>
+    </child>
+  </object>
+
 </interface>


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