[gnome-boxes/wip/rishi/rhel: 10/16] wizard: Wire the custom filename to the URI validator
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/rishi/rhel: 10/16] wizard: Wire the custom filename to the URI validator
- Date: Tue, 26 Sep 2017 18:16:04 +0000 (UTC)
commit 3ce6b0eb5775d8652fbfb50d7eaaa20912486461
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Sep 6 13:44:42 2017 +0200
wizard: Wire the custom filename to the URI validator
https://bugzilla.gnome.org/show_bug.cgi?id=786679
src/wizard.vala | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index dccaca6..9650fac 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -171,7 +171,7 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
return;
try {
- prepare_for_location (wizard_source.uri, true);
+ prepare_for_location (wizard_source.uri, null, true);
next_button.sensitive = true;
} catch (GLib.Error error) {
@@ -262,6 +262,7 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
}
private void prepare_for_location (string location,
+ string? filename,
bool probing,
ActivityProgress? progress = null)
throws GLib.Error
@@ -302,7 +303,7 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
return;
}
- prepare_for_uri (file.get_uri ());
+ prepare_for_uri (file.get_uri (), filename);
}
private void prepare_for_uri (string uri_as_text, string? filename = null) throws Boxes.Error {
@@ -396,7 +397,7 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
try {
// Validate URI
- prepare_for_location (wizard_source.uri, true);
+ prepare_for_location (wizard_source.uri, null, true);
} catch (GLib.Error error) {
window.notificationbar.display_error (error.message);
@@ -427,7 +428,7 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
}
try {
- prepare_for_location (wizard_source.uri, false, progress);
+ prepare_for_location (wizard_source.uri, null, false, progress);
} catch (GLib.Error error) {
window.notificationbar.display_error (error.message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]