[gnome-boxes/drop-remote-connections: 3/8] collection-toolbar: Drop "remote connections" options from the UI




commit 9c6334ca038f135c1b1175a5bdf514ec282df029
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Aug 31 13:31:02 2020 +0200

    collection-toolbar: Drop "remote connections" options from the UI
    
    The remote connections (remote desktop) features of GNOME Boxes have
    been split off into Connections (a new GNOME application for remote
    connections management). See https://gitlab.gnome.org/GNOME/connections

 data/ui/collection-toolbar.ui | 29 ++---------------------------
 src/collection-toolbar.vala   |  7 +------
 2 files changed, 3 insertions(+), 33 deletions(-)
---
diff --git a/data/ui/collection-toolbar.ui b/data/ui/collection-toolbar.ui
index 86c42e21..bdf90683 100644
--- a/data/ui/collection-toolbar.ui
+++ b/data/ui/collection-toolbar.ui
@@ -10,10 +10,10 @@
     </style>
 
     <child>
-      <object class="GtkMenuButton" id="new_btn">
+      <object class="GtkButton" id="new_btn">
         <property name="visible">True</property>
         <property name="valign">center</property>
-        <property name="popover">assistant_menu</property>
+        <signal name="clicked" handler="on_new_btn_clicked"/>
         <style>
           <class name="image-button"/>
         </style>
@@ -219,29 +219,4 @@
       </packing>
     </child>
   </template>
-
-  <!-- Assistant Popover -->
-  <object class="GtkPopoverMenu" id="assistant_menu">
-    <child>
-      <object class="GtkBox">
-        <property name="visible">True</property>
-        <property name="orientation">vertical</property>
-        <property name="margin">10</property>
-        <child>
-          <object class="GtkModelButton">
-            <property name="visible">True</property>
-            <property name="text" translatable="yes">Create a Virtual Machineā€¦</property>
-            <signal name="clicked" handler="on_create_vm_btn_clicked"/>
-          </object>
-        </child>
-        <child>
-          <object class="GtkModelButton">
-            <property name="visible">True</property>
-            <property name="text" translatable="yes">Connect to a Remote Computerā€¦</property>
-            <signal name="clicked" handler="on_connect_to_remote_btn_clicked"/>
-          </object>
-        </child>
-      </object>
-    </child>
-  </object>
 </interface>
diff --git a/src/collection-toolbar.vala b/src/collection-toolbar.vala
index 822d1196..2d45058f 100644
--- a/src/collection-toolbar.vala
+++ b/src/collection-toolbar.vala
@@ -57,12 +57,7 @@ public void click_search_button () {
     }
 
     [GtkCallback]
-    private void on_connect_to_remote_btn_clicked () {
-        window.show_remote_connection_assistant ();
-    }
-
-    [GtkCallback]
-    private void on_create_vm_btn_clicked () {
+    private void on_new_btn_clicked () {
         window.show_vm_assistant ();
     }
 


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