[calls] main-window: Add menu button



commit fadeaeb6b558cbb647717a84c6fff9719098a0d5
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 7b6364c9..ae598c09 100644
--- a/src/ui/main-window.ui
+++ b/src/ui/main-window.ui
@@ -28,6 +28,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>
         <child>
@@ -95,7 +112,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>
@@ -197,4 +214,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]