[gnome-boxes/drop-remote-connections: 16/18] assistant: Remove "Remote Connection" assistant
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/drop-remote-connections: 16/18] assistant: Remove "Remote Connection" assistant
- Date: Mon, 7 Sep 2020 09:48:52 +0000 (UTC)
commit bdf1fcafd74fa2127d8e0fcc2f95d957cee1abcb
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Aug 31 13:40:03 2020 +0200
assistant: Remove "Remote Connection" assistant
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/gnome-boxes.gresource.xml | 1 -
data/ui/assistant/remote-connection.ui | 54 -----------------------
src/app-window.vala | 9 ----
src/app.vala | 12 ++----
src/assistant/remote-connection.vala | 78 ----------------------------------
src/meson.build | 1 -
6 files changed, 3 insertions(+), 152 deletions(-)
---
diff --git a/data/gnome-boxes.gresource.xml b/data/gnome-boxes.gresource.xml
index 15a3c289..29834a38 100644
--- a/data/gnome-boxes.gresource.xml
+++ b/data/gnome-boxes.gresource.xml
@@ -52,7 +52,6 @@
<file preprocess="xml-stripblanks">ui/wizard-toolbar.ui</file>
<file preprocess="xml-stripblanks">ui/wizard-web-view.ui</file>
<file preprocess="xml-stripblanks">ui/wizard-window.ui</file>
- <file preprocess="xml-stripblanks">ui/assistant/remote-connection.ui</file>
<file preprocess="xml-stripblanks">ui/assistant/vm-assistant.ui</file>
<file preprocess="xml-stripblanks">ui/assistant/rhel-download-dialog.ui</file>
<file preprocess="xml-stripblanks">ui/assistant/pages/identify-os-page.ui</file>
diff --git a/src/app-window.vala b/src/app-window.vala
index 51cd94d3..caba3b13 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -282,10 +282,6 @@ public void foreach_view (Func<ICollectionView> func) {
func (view);
}
- public void show_remote_connection_assistant (string? uri = null) {
- new Boxes.RemoteConnectionAssistant (this, uri).run ();
- }
-
public void show_vm_assistant (string? path = null) {
new Boxes.VMAssistant (this, path).run ();
}
@@ -420,11 +416,6 @@ public bool on_key_pressed (Widget widget, Gdk.EventKey event) {
(event.state & default_modifiers) == Gdk.ModifierType.CONTROL_MASK) {
show_vm_assistant ();
- return true;
- } else if (event.keyval == Gdk.Key.N &&
- (event.state & default_modifiers) == (Gdk.ModifierType.CONTROL_MASK |
Gdk.ModifierType.SHIFT_MASK)) {
- show_remote_connection_assistant ();
-
return true;
} else if (event.keyval == Gdk.Key.f &&
(event.state & default_modifiers) == Gdk.ModifierType.CONTROL_MASK) {
diff --git a/src/app.vala b/src/app.vala
index e03e89a3..e8573b51 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -238,15 +238,9 @@ public override int command_line (GLib.ApplicationCommandLine cmdline) {
call_when_ready (() => {
var file = File.new_for_commandline_arg (arg);
- var is_uri = (Uri.parse_scheme (arg) != null);
-
- if (file.query_exists ()) {
- if (is_uri)
- main_window.show_remote_connection_assistant (arg);
- else
- main_window.show_vm_assistant (file.get_path ());
- } else if (is_uri)
- main_window.show_remote_connection_assistant (arg);
+
+ if (file.query_exists ())
+ main_window.show_vm_assistant (file.get_path ());
else
open_name (arg);
});
diff --git a/src/meson.build b/src/meson.build
index 028750c5..5a0b550c 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -116,7 +116,6 @@ vala_sources = [
'snapshot-list-row.vala',
'snapshots-property.vala',
'assistant/rhel-download-dialog.vala',
- 'assistant/remote-connection.vala',
'assistant/vm-assistant.vala',
'assistant/assistant-page.vala',
'assistant/index-page.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]