From 96134c63d8200385988d766ba1e55683bf203ab1 Mon Sep 17 00:00:00 2001 From: smanojna Date: Fri, 6 Jan 2006 14:05:07 +0000 Subject: [PATCH] - Fixed an issue in the right-click context menu. ................................................. --- c_gui/CasaMain.cs | 4 ++-- c_gui/GnomeKeyring.cs | 5 +++-- c_gui/KdeWallet.cs | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/c_gui/CasaMain.cs b/c_gui/CasaMain.cs index 605153c3..fc9b728d 100644 --- a/c_gui/CasaMain.cs +++ b/c_gui/CasaMain.cs @@ -558,8 +558,7 @@ namespace Novell.CASA.GUI mmiNew.Sensitive = mmiNewKey.Sensitive = true; } else - { - //mmiNew.Sensitive = true; + { mmiNewKey.Sensitive = false; } break; @@ -586,6 +585,7 @@ namespace Novell.CASA.GUI { //mmiNew.Sensitive = mmiNewKey.Sensitive = true; mmiNew.Sensitive = true; + mmiNewKey.Sensitive = false; } else { diff --git a/c_gui/GnomeKeyring.cs b/c_gui/GnomeKeyring.cs index b7b61e90..db9de299 100644 --- a/c_gui/GnomeKeyring.cs +++ b/c_gui/GnomeKeyring.cs @@ -199,9 +199,9 @@ public class GnomeKeyring : Store menuRightClick.Popup(null, null, null, IntPtr.Zero, 3, Gtk.Global.CurrentEventTime); if( 0 != tvSecretIDGnomeKeyring.Selection.CountSelectedRows() ) - cmiLink.Sensitive = cmiCopy.Sensitive = false; + cmiNewKey.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = false; 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) { @@ -642,6 +642,7 @@ public class GnomeKeyring : Store tvKeyValue.AppendColumn("Linked",new CellRendererText(),"text",4); tvKeyValue.Model = tsKeyValue; tsKeyValue.Clear(); + tsKeyValue.AppendValues("GKPassword", "novell", "********", true, "No"); entrySecretID.HasFocus = true; entrySecretID.Text = ""; diff --git a/c_gui/KdeWallet.cs b/c_gui/KdeWallet.cs index 6788f605..5b26e28e 100644 --- a/c_gui/KdeWallet.cs +++ b/c_gui/KdeWallet.cs @@ -195,7 +195,7 @@ public class KdeWallet : Store if( 0 != tvSecretIDKdeWallet.Selection.CountSelectedRows() ) cmiLink.Sensitive = cmiCopy.Sensitive = false; 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) {