Bug 142183. Do not add GKPassword to gnome-keyring. Provided by Manohar

This commit is contained in:
Jim Norman
2006-01-25 21:24:37 +00:00
parent 85b8d6d5ff
commit ada9ed5d86
3 changed files with 431 additions and 397 deletions

View File

@@ -412,7 +412,7 @@ public class GnomeKeyring : Store
TreeIter iterKey;
if(tvKeyValue.Selection.GetSelected (out modelKey, out iterKey))
if( "GKPassword" != (string)tsKeyValue.GetValue(iterKey,0) && false == (bool)tsKeyValue.GetValue(iterKey,3) )
if( false == (bool)tsKeyValue.GetValue(iterKey,3) )
arrDeletedKeys.Add(tsKeyValue.GetValue(iterKey,0));
if( 0 != tvKeyValue.Selection.CountSelectedRows() )
@@ -421,11 +421,8 @@ public class GnomeKeyring : Store
TreeIter iter;
tvKeyValue.Selection.GetSelected (out model, out iter);
if( "GKPassword" != (string)tsKeyValue.GetValue(iter,0) )
{
tsKeyValue.Remove(ref iter);
tvKeyValue.ColumnsAutosize();
}
tsKeyValue.Remove(ref iter);
tvKeyValue.ColumnsAutosize();
}
Logger.DbgLog("GUI:GnomeKeyring.on_buttonNewRemove_clicked() - END");
@@ -658,8 +655,7 @@ public class GnomeKeyring : Store
tvKeyValue.AppendColumn("Value",cellEditable,"text",2);
tvKeyValue.AppendColumn("Linked",new CellRendererText(),"text",4);
tvKeyValue.Model = tsKeyValue;
tsKeyValue.Clear();
tsKeyValue.AppendValues("GKPassword", "novell", "********", true, "No");
tsKeyValue.Clear();
entrySecretID.HasFocus = true;
entrySecretID.Text = "";