[intro] Prevent closing the user info form

This commit is contained in:
Hylke Bons 2010-11-20 13:46:26 +00:00
parent 3a0bcedc09
commit be418592b8

View file

@ -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;
@ -60,6 +59,8 @@ namespace SparkleShare {
Reset (); Reset ();
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!") +
@ -120,15 +121,14 @@ namespace SparkleShare {
table.Sensitive = false; table.Sensitive = false;
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);