- Fixed an issue in the right-click context menu.

.................................................
This commit is contained in:
smanojna 2006-01-06 14:05:07 +00:00
parent abd45aadc8
commit 96134c63d8
3 changed files with 6 additions and 5 deletions

View File

@ -559,7 +559,6 @@ namespace Novell.CASA.GUI
} }
else else
{ {
//mmiNew.Sensitive = true;
mmiNewKey.Sensitive = false; mmiNewKey.Sensitive = false;
} }
break; break;
@ -586,6 +585,7 @@ namespace Novell.CASA.GUI
{ {
//mmiNew.Sensitive = mmiNewKey.Sensitive = true; //mmiNew.Sensitive = mmiNewKey.Sensitive = true;
mmiNew.Sensitive = true; mmiNew.Sensitive = true;
mmiNewKey.Sensitive = false;
} }
else else
{ {

View File

@ -199,9 +199,9 @@ public class GnomeKeyring : Store
menuRightClick.Popup(null, null, null, IntPtr.Zero, 3, Gtk.Global.CurrentEventTime); menuRightClick.Popup(null, null, null, IntPtr.Zero, 3, Gtk.Global.CurrentEventTime);
if( 0 != tvSecretIDGnomeKeyring.Selection.CountSelectedRows() ) if( 0 != tvSecretIDGnomeKeyring.Selection.CountSelectedRows() )
cmiLink.Sensitive = cmiCopy.Sensitive = false; cmiNewKey.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = false;
else else
cmiNewSecret.Sensitive = cmiNewKey.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false; cmiNewKey.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
} }
catch(Exception exp) catch(Exception exp)
{ {
@ -642,6 +642,7 @@ public class GnomeKeyring : Store
tvKeyValue.AppendColumn("Linked",new CellRendererText(),"text",4); tvKeyValue.AppendColumn("Linked",new CellRendererText(),"text",4);
tvKeyValue.Model = tsKeyValue; tvKeyValue.Model = tsKeyValue;
tsKeyValue.Clear(); tsKeyValue.Clear();
tsKeyValue.AppendValues("GKPassword", "novell", "********", true, "No");
entrySecretID.HasFocus = true; entrySecretID.HasFocus = true;
entrySecretID.Text = ""; entrySecretID.Text = "";

View File

@ -195,7 +195,7 @@ public class KdeWallet : Store
if( 0 != tvSecretIDKdeWallet.Selection.CountSelectedRows() ) if( 0 != tvSecretIDKdeWallet.Selection.CountSelectedRows() )
cmiLink.Sensitive = cmiCopy.Sensitive = false; cmiLink.Sensitive = cmiCopy.Sensitive = false;
else else
cmiNewSecret.Sensitive = cmiNewKey.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false; cmiNewKey.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
} }
catch(Exception exp) catch(Exception exp)
{ {