From ee5624f8f2e1574ed6359d32c60cb7766a33ba0c Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Wed, 18 Jan 2006 23:13:33 +0000 Subject: [PATCH] Bug 143891. Sort SecretIDs on Link dialog. --- CASA.changes | 5 +++++ c_gui/MiCasa.cs | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CASA.changes b/CASA.changes index b0282f7d..139117d6 100644 --- a/CASA.changes +++ b/CASA.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 18 16:12:34 MST 2006 - jnorman@novell.com + +- Bug 143891. Sort SecretIDs on Link dialog. + ------------------------------------------------------------------- Fri Jan 13 15:02:34 MST 2006 - jnorman@novell.com diff --git a/c_gui/MiCasa.cs b/c_gui/MiCasa.cs index 9f0523c6..b6ed4887 100644 --- a/c_gui/MiCasa.cs +++ b/c_gui/MiCasa.cs @@ -944,10 +944,13 @@ public class MiCasa : Store (notebook2.GetNthPage(Common.STORE_GNOMEKEYRING)).Visible = false; // show available secrets - tsAvailableSecrets=new TreeStore(typeof(string),typeof(string)); - tvAvailableSecrets.AppendColumn("Secret-ID",new CellRendererText(),"text",0); + tsAvailableSecrets=new TreeStore(typeof(string),typeof(string)); + tsAvailableSecrets.SetSortColumnId(0, Gtk.SortType.Ascending); + + tvAvailableSecrets.AppendColumn("Secret-ID",new CellRendererText(),"text",0); tvAvailableSecrets.Model=tsAvailableSecrets; tvAvailableSecrets.ButtonReleaseEvent +=new ButtonReleaseEventHandler(tvAvailableSecrets_ButtonReleaseEvent); + // show secretIDs SecretStore ss = GetMiCasaStore(); StringCollection sc = ss.enumerateSecretIDs();