Server and Folder completion
This commit is contained in:
parent
29d1dcfdb5
commit
56a93133c5
|
@ -150,8 +150,8 @@ namespace SparkleShare {
|
||||||
|
|
||||||
ListStore server_store = new ListStore (typeof (string));
|
ListStore server_store = new ListStore (typeof (string));
|
||||||
|
|
||||||
//TODO foreach (string host in SparkleShare.Controller.PreviousHosts)
|
foreach (string host in SparkleShare.Controller.PreviousHosts)
|
||||||
// server_store.AppendValues (host);
|
server_store.AppendValues (host);
|
||||||
|
|
||||||
ServerEntry.Completion.Model = server_store;
|
ServerEntry.Completion.Model = server_store;
|
||||||
ServerEntry.Completion.TextColumn = 0;
|
ServerEntry.Completion.TextColumn = 0;
|
||||||
|
@ -236,6 +236,15 @@ namespace SparkleShare {
|
||||||
|
|
||||||
FolderEntry = new SparkleEntry ();
|
FolderEntry = new SparkleEntry ();
|
||||||
FolderEntry.ExampleText = _("Folder");
|
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 {
|
FolderEntry.Changed += delegate {
|
||||||
CheckAddPage ();
|
CheckAddPage ();
|
||||||
|
|
Loading…
Reference in a new issue