log: add separator after All Folders item
This commit is contained in:
parent
d3bdd357e8
commit
6ae4b481f6
|
@ -129,12 +129,18 @@ namespace SparkleShare {
|
|||
this.combo_box.Model = store;
|
||||
|
||||
store.AppendValues (_("All Folders"));
|
||||
store.AppendValues ("---");
|
||||
|
||||
foreach (string folder_name in SparkleShare.Controller.Folders)
|
||||
store.AppendValues (folder_name);
|
||||
|
||||
this.combo_box.Active = 0;
|
||||
|
||||
this.combo_box.RowSeparatorFunc = delegate (TreeModel model, TreeIter iter) {
|
||||
string item = (string) this.combo_box.Model.GetValue (iter, 0);
|
||||
return (item == "---");
|
||||
};
|
||||
|
||||
this.combo_box.Changed += delegate {
|
||||
TreeIter iter;
|
||||
this.combo_box.GetActiveIter (out iter);
|
||||
|
|
Loading…
Reference in a new issue