- Fixed NewSecret/NewKey context-menu functionality.

- Mandate the minimum length of MasterPassword to eight characters.
- Updated CASAManager.sh to export MONO_PATH.
This commit is contained in:
smanojna 2005-10-20 12:58:19 +00:00
parent 442b47d954
commit f2196fe5d1
4 changed files with 6163 additions and 6187 deletions

View File

@ -298,7 +298,7 @@ public class CasaMain
if( true == entryMasterPassword4.Visible )
{
if(entryMasterPassword3.Text != "" && (entryMasterPassword3.Text == entryMasterPassword4.Text))
if(entryMasterPassword3.Text != "" && (entryMasterPassword3.Text == entryMasterPassword4.Text) && entryMasterPassword3.Text.Length >= 8)
{
miCASA.SetMasterPassword(0, entryMasterPassword3.Text);
MiCasaRequestReply.Send(MiCasaRequestReply.VERB_UNLOCK_STORE, entryMasterPassword3.Text);

View File

@ -63,7 +63,8 @@ public class GnomeKeyring : Store
buttonNewRemove,
buttonManageOk;
[Glade.Widget]
Gtk.MenuItem cmiNew,
Gtk.MenuItem cmiNewSecret,
cmiNewKey,
cmiDelete,
cmiView,
cmiLink,
@ -187,9 +188,9 @@ public class GnomeKeyring : Store
gxmlTemp.Autoconnect (this);
menuRightClick.Popup(null, null, null, IntPtr.Zero, 3, Gtk.Global.CurrentEventTime);
if( 0 != tvSecretIDGnomeKeyring.Selection.CountSelectedRows() )
cmiNew.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
cmiNewSecret.Sensitive = cmiNewKey.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
else
cmiNew.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
cmiNewSecret.Sensitive = cmiNewKey.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
}
catch(Exception exp)
{

View File

@ -62,7 +62,8 @@ public class KdeWallet : Store
buttonManageOk;
[Glade.Widget]
Gtk.MenuItem cmiNew,
Gtk.MenuItem cmiNewSecret,
cmiNewKey,
cmiDelete,
cmiView,
cmiLink,
@ -186,9 +187,9 @@ public class KdeWallet : Store
menuRightClick.Popup(null, null, null, IntPtr.Zero, 3, Gtk.Global.CurrentEventTime);
if( 0 != tvSecretIDKdeWallet.Selection.CountSelectedRows() )
cmiNew.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
cmiNewSecret.Sensitive = cmiNewKey.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
else
cmiNew.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
cmiNewSecret.Sensitive = cmiNewKey.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
}
catch(Exception exp)
{

View File

@ -1526,7 +1526,6 @@ their backend stores.</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
<property name="modal">True</property>
<property name="default_height">500</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">True</property>
<property name="icon">CASAicons.ico</property>
@ -1842,7 +1841,7 @@ their backend stores.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
@ -1863,7 +1862,7 @@ their backend stores.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
@ -2041,7 +2040,7 @@ their backend stores.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
@ -2077,7 +2076,6 @@ their backend stores.</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
<property name="modal">True</property>
<property name="default_height">600</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">True</property>
<property name="icon">CASAicons.ico</property>
@ -2262,7 +2260,7 @@ their backend stores.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
@ -3350,7 +3348,7 @@ their backend stores.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
@ -3691,7 +3689,7 @@ Console.</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="padding">4</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
@ -3878,7 +3876,7 @@ prompted for the Master Password at startup.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
@ -3899,7 +3897,7 @@ prompted for the Master Password at startup.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
@ -3919,7 +3917,7 @@ prompted for the Master Password at startup.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
@ -4294,27 +4292,6 @@ prompted for the Master Password at startup.</property>
<widget class="GtkMenu" id="menuRightClick">
<child>
<widget class="GtkImageMenuItem" id="cmiNew">
<property name="visible">True</property>
<property name="label" translatable="yes">_New</property>
<property name="use_underline">True</property>
<child internal-child="image">
<widget class="GtkImage" id="image1608">
<property name="visible">True</property>
<property name="stock">gtk-new</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
<child>
<widget class="GtkMenu" id="cmiNew_menu">
<child>
<widget class="GtkImageMenuItem" id="cmiNewSecret">
<property name="visible">True</property>
@ -4323,7 +4300,7 @@ prompted for the Master Password at startup.</property>
<signal name="activate" handler="OnNewSecretActivated" last_modification_time="Thu, 01 Sep 2005 08:32:01 GMT"/>
<child internal-child="image">
<widget class="GtkImage" id="image1609">
<widget class="GtkImage" id="image2602">
<property name="visible">True</property>
<property name="stock">gtk-new</property>
<property name="icon_size">1</property>
@ -4344,7 +4321,7 @@ prompted for the Master Password at startup.</property>
<signal name="activate" handler="OnNewKeyActivated" last_modification_time="Thu, 01 Sep 2005 08:32:01 GMT"/>
<child internal-child="image">
<widget class="GtkImage" id="image1610">
<widget class="GtkImage" id="image2603">
<property name="visible">True</property>
<property name="stock">gtk-new</property>
<property name="icon_size">1</property>
@ -4356,10 +4333,6 @@ prompted for the Master Password at startup.</property>
</child>
</widget>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="cmiView">
@ -4367,9 +4340,10 @@ prompted for the Master Password at startup.</property>
<property name="label" translatable="yes">_View</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnViewActivated" last_modification_time="Wed, 24 Aug 2005 08:18:03 GMT"/>
<accelerator key="F2" modifiers="0" signal="activate"/>
<child internal-child="image">
<widget class="GtkImage" id="image1611">
<widget class="GtkImage" id="image2604">
<property name="visible">True</property>
<property name="stock">gtk-zoom-fit</property>
<property name="icon_size">1</property>
@ -4390,7 +4364,7 @@ prompted for the Master Password at startup.</property>
<signal name="activate" handler="OnLinkActivated" last_modification_time="Wed, 24 Aug 2005 08:58:02 GMT"/>
<child internal-child="image">
<widget class="GtkImage" id="image1612">
<widget class="GtkImage" id="image2605">
<property name="visible">True</property>
<property name="stock">gtk-jump-to</property>
<property name="icon_size">1</property>
@ -4411,7 +4385,7 @@ prompted for the Master Password at startup.</property>
<signal name="activate" handler="OnCopyActivated" last_modification_time="Wed, 24 Aug 2005 08:58:02 GMT"/>
<child internal-child="image">
<widget class="GtkImage" id="image1613">
<widget class="GtkImage" id="image2606">
<property name="visible">True</property>
<property name="stock">gtk-copy</property>
<property name="icon_size">1</property>
@ -4436,9 +4410,10 @@ prompted for the Master Password at startup.</property>
<property name="label" translatable="yes">_Delete</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnDeleteActivated" last_modification_time="Wed, 24 Aug 2005 09:02:02 GMT"/>
<accelerator key="Delete" modifiers="0" signal="activate"/>
<child internal-child="image">
<widget class="GtkImage" id="image1614">
<widget class="GtkImage" id="image2607">
<property name="visible">True</property>
<property name="stock">gtk-delete</property>
<property name="icon_size">1</property>
@ -5065,7 +5040,7 @@ prompted for the Master Password at startup.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
<signal name="activate" handler="on_entryMasterPassword3_activate" last_modification_time="Tue, 27 Sep 2005 10:46:32 GMT"/>
</widget>
@ -5087,7 +5062,7 @@ prompted for the Master Password at startup.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
<signal name="activate" handler="on_entryMasterPassword4_activate" last_modification_time="Tue, 27 Sep 2005 04:37:31 GMT"/>
</widget>
@ -5242,7 +5217,6 @@ prompted for the Master Password at startup.</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
<property name="modal">True</property>
<property name="default_height">500</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">True</property>
<property name="icon">CASAicons.ico</property>
@ -5559,7 +5533,7 @@ prompted for the Master Password at startup.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
@ -5580,7 +5554,7 @@ prompted for the Master Password at startup.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
@ -5759,7 +5733,7 @@ prompted for the Master Password at startup.</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>