This commit is contained in:
parent
17e87363f8
commit
61178ffecd
@ -1,3 +1,7 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 30 8:40:35 MST 2006 - jnorman@novell.com
|
||||||
|
- Bug 157218. Clear views on secrets when GUI is locked
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 29 19:40:35 IST 2006 - lsreevatsa@novell.com
|
Wed Mar 29 19:40:35 IST 2006 - lsreevatsa@novell.com
|
||||||
|
|
||||||
|
@ -991,10 +991,28 @@ namespace Novell.CASA.GUI
|
|||||||
|
|
||||||
if( Common.IS_GNOMEKEYRING )
|
if( Common.IS_GNOMEKEYRING )
|
||||||
objGnomeKeyring.AggregateStore();
|
objGnomeKeyring.AggregateStore();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
internal void ClearViewOnStores()
|
||||||
|
{
|
||||||
|
if( Common.IS_MICASA )
|
||||||
|
objMiCasa.ClearViewOnStore();
|
||||||
|
|
||||||
|
if( Common.IS_FIREFOX )
|
||||||
|
{
|
||||||
|
objFirefox.ClearViewOnStore();
|
||||||
|
}
|
||||||
|
|
||||||
|
if( Common.IS_MOZILLA )
|
||||||
|
objMozilla.ClearViewOnStore();
|
||||||
|
|
||||||
|
if( Common.IS_KDEWALLET )
|
||||||
|
objKdeWallet.ClearViewOnStore();
|
||||||
|
|
||||||
|
if( Common.IS_GNOMEKEYRING )
|
||||||
|
objGnomeKeyring.ClearViewOnStore();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ********************************************************************
|
/// ********************************************************************
|
||||||
@ -1102,6 +1120,7 @@ namespace Novell.CASA.GUI
|
|||||||
|
|
||||||
internal void LockGUI()
|
internal void LockGUI()
|
||||||
{
|
{
|
||||||
|
ClearViewOnStores();
|
||||||
notebookStores.Sensitive = false;
|
notebookStores.Sensitive = false;
|
||||||
mmiLockSecrets.Sensitive = false;
|
mmiLockSecrets.Sensitive = false;
|
||||||
mmiUnlockSecrets.Sensitive = true;
|
mmiUnlockSecrets.Sensitive = true;
|
||||||
|
@ -81,7 +81,7 @@ namespace Novell.CASA.GUI
|
|||||||
//MessageBox.Show("File 'notify.ico' cannot be found", "Error");
|
//MessageBox.Show("File 'notify.ico' cannot be found", "Error");
|
||||||
//Console.WriteLine(e.ToString());
|
//Console.WriteLine(e.ToString());
|
||||||
//Console.WriteLine("File 'notify.ico' cannot be found");
|
//Console.WriteLine("File 'notify.ico' cannot be found");
|
||||||
Logger.DbgLog("GUI:CasaTray.Setup() EXCEPTION: \n"e.ToString());
|
Logger.DbgLog("GUI:CasaTray.Setup() EXCEPTION: \n" + e.ToString());
|
||||||
Logger.DbgLog("GUI:CasaTray.Setup(): File 'notify.ico' cannot be found");
|
Logger.DbgLog("GUI:CasaTray.Setup(): File 'notify.ico' cannot be found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -261,7 +261,7 @@ namespace Novell.CASA.GUI
|
|||||||
sk1.Close();
|
sk1.Close();
|
||||||
//ShowErrorMessage(e, "Reading registry " + KeyName.ToUpper());
|
//ShowErrorMessage(e, "Reading registry " + KeyName.ToUpper());
|
||||||
//Console.Write(e.ToString());
|
//Console.Write(e.ToString());
|
||||||
Logger.DbgLog("GUI:CommonGUI.WriteRegKey EXCEPTION: \n"e.ToString());
|
Logger.DbgLog("GUI:CommonGUI.WriteRegKey EXCEPTION: \n" + e.ToString());
|
||||||
//return null;
|
//return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -142,6 +142,13 @@ public class Firefox : Store
|
|||||||
Logger.DbgLog("GUI:Firefox.AggregateStore() - END");
|
Logger.DbgLog("GUI:Firefox.AggregateStore() - END");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public override void ClearViewOnStore()
|
||||||
|
{
|
||||||
|
tsSecretIDFirefox.Clear();
|
||||||
|
tsNativeInfoFirefox.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
///#######################################################################
|
///#######################################################################
|
||||||
/// DISPLAY NATIVE INFO
|
/// DISPLAY NATIVE INFO
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -169,6 +169,11 @@ public class GnomeKeyring : Store
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public override void ClearViewOnStore()
|
||||||
|
{
|
||||||
|
tsSecretIDGnomeKeyring.Clear();
|
||||||
|
tsNativeInfoGnomeKeyring.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
///#######################################################################
|
///#######################################################################
|
||||||
/// DISPLAY NATIVE INFO
|
/// DISPLAY NATIVE INFO
|
||||||
|
@ -168,6 +168,12 @@ public class KdeWallet : Store
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public override void ClearViewOnStore()
|
||||||
|
{
|
||||||
|
tsSecretIDKdeWallet.Clear();
|
||||||
|
tsNativeInfoKdeWallet.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
///#######################################################################
|
///#######################################################################
|
||||||
/// DISPLAY NATIVE INFO
|
/// DISPLAY NATIVE INFO
|
||||||
|
@ -162,6 +162,12 @@ public class MiCasa : Store
|
|||||||
Logger.DbgLog("GUI:MiCasa.AggregateStore() - END");
|
Logger.DbgLog("GUI:MiCasa.AggregateStore() - END");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void ClearViewOnStore()
|
||||||
|
{
|
||||||
|
tsSecretIDMiCasa.Clear();
|
||||||
|
tsNativeInfoMiCasa.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
///#######################################################################
|
///#######################################################################
|
||||||
|
@ -33,6 +33,11 @@ public class Mozilla : Store
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void ClearViewOnStore()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public override void ViewKeyValues()
|
public override void ViewKeyValues()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -36,6 +36,13 @@ public abstract class Store
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract void AggregateStore();
|
public abstract void AggregateStore();
|
||||||
|
|
||||||
|
///#######################################################################
|
||||||
|
/// <summary>
|
||||||
|
/// Clears the TreeStore object for the
|
||||||
|
/// respective stores.
|
||||||
|
/// </summary>
|
||||||
|
public abstract void ClearViewOnStore();
|
||||||
|
|
||||||
|
|
||||||
///#######################################################################
|
///#######################################################################
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user