Server and Folder completion

This commit is contained in:
Lars Falk-Petersen 2011-07-22 23:01:17 +02:00
parent 3d707244b7
commit 9a4d34b4e9

View file

@ -150,8 +150,8 @@ namespace SparkleShare {
ListStore server_store = new ListStore (typeof (string));
//TODO foreach (string host in SparkleShare.Controller.PreviousHosts)
// server_store.AppendValues (host);
foreach (string host in SparkleShare.Controller.PreviousHosts)
server_store.AppendValues (host);
ServerEntry.Completion.Model = server_store;
ServerEntry.Completion.TextColumn = 0;
@ -236,6 +236,15 @@ namespace SparkleShare {
FolderEntry = new SparkleEntry ();
FolderEntry.ExampleText = _("Folder");
FolderEntry.Completion = new EntryCompletion();
ListStore folder_store = new ListStore (typeof (string));
foreach (string host in SparkleShare.Controller.FolderPaths)
folder_store.AppendValues (host);
FolderEntry.Completion.Model = folder_store;
FolderEntry.Completion.TextColumn = 0;
FolderEntry.Changed += delegate {
CheckAddPage ();