[intro] Prevent closing the user info form
This commit is contained in:
parent
4e3b4f5950
commit
5c359ae736
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
using Gtk;
|
using Gtk;
|
||||||
using Mono.Unix;
|
using Mono.Unix;
|
||||||
using SparkleLib;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
@ -61,6 +60,8 @@ namespace SparkleShare {
|
||||||
|
|
||||||
VBox layout_vertical = new VBox (false, 0);
|
VBox layout_vertical = new VBox (false, 0);
|
||||||
|
|
||||||
|
DeleteEvent += PreventClose;
|
||||||
|
|
||||||
Label header = new Label ("<span size='x-large'><b>" +
|
Label header = new Label ("<span size='x-large'><b>" +
|
||||||
_("Welcome to SparkleShare!") +
|
_("Welcome to SparkleShare!") +
|
||||||
"</b></span>") {
|
"</b></span>") {
|
||||||
|
@ -121,14 +122,13 @@ namespace SparkleShare {
|
||||||
|
|
||||||
NextButton.ShowAll ();
|
NextButton.ShowAll ();
|
||||||
|
|
||||||
|
|
||||||
SparkleShare.Controller.UserName = NameEntry.Text;
|
SparkleShare.Controller.UserName = NameEntry.Text;
|
||||||
SparkleShare.Controller.UserEmail = EmailEntry.Text;
|
SparkleShare.Controller.UserEmail = EmailEntry.Text;
|
||||||
|
|
||||||
SparkleShare.Controller.GenerateKeyPair ();
|
SparkleShare.Controller.GenerateKeyPair ();
|
||||||
SparkleShare.Controller.AddKey ();
|
SparkleShare.Controller.AddKey ();
|
||||||
|
|
||||||
|
DeleteEvent += PreventClose;
|
||||||
ShowServerForm ();
|
ShowServerForm ();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -356,7 +356,7 @@ namespace SparkleShare {
|
||||||
server = "ssh://git@gnome.org/git/";
|
server = "ssh://git@gnome.org/git/";
|
||||||
|
|
||||||
string url = server + "/" + name;
|
string url = server + "/" + name;
|
||||||
SparkleHelpers.DebugInfo ("Git", "[" + name + "] Formed URL: " + url);
|
Console.WriteLine ("View", "[" + name + "] Formed URL: " + url);
|
||||||
|
|
||||||
string canonical_name = System.IO.Path.GetFileNameWithoutExtension (name);
|
string canonical_name = System.IO.Path.GetFileNameWithoutExtension (name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue