From 9410dca79c99c4f7adb01ae949f794442a80ffe6 Mon Sep 17 00:00:00 2001 From: smanojna Date: Thu, 4 May 2006 09:47:47 +0000 Subject: [PATCH] ------------------------------------------------------------------- Thu May 4 15:23:17 IST 2006 - smanojna@novell.com - Description: 1. Added dialog-modal property for change master password dialog. 2. Added delete dialog handler for master password prompt dialog during unlock store. - Modified files: c_gui/images/casa.glade c_gui/CommonGUI.cs ------------------------------------------------------------------- --- CASA.changes | 12 +++++++++ c_gui/CommonGUI.cs | 11 +++++---- c_gui/images/casa.glade | 54 ++++++++++++++++++++--------------------- 3 files changed, 45 insertions(+), 32 deletions(-) diff --git a/CASA.changes b/CASA.changes index af527c0f..c9e15aaa 100644 --- a/CASA.changes +++ b/CASA.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Thu May 4 15:23:17 IST 2006 - smanojna@novell.com + +- Description: + 1. Added dialog-modal property for change master password dialog. + 2. Added delete dialog handler for master password prompt dialog + during unlock store. + +- Modified files: + c_gui/images/casa.glade + c_gui/CommonGUI.cs + ------------------------------------------------------------------- Thu May 4 09:36:04 IST 2006 - smanojna@novell.com - Description: diff --git a/c_gui/CommonGUI.cs b/c_gui/CommonGUI.cs index 32c99af2..e63fc62b 100644 --- a/c_gui/CommonGUI.cs +++ b/c_gui/CommonGUI.cs @@ -77,17 +77,17 @@ namespace Novell.CASA.GUI Glade.XML gxmlTemp = new Glade.XML ("../images/casa.glade", "dialogLogin", null); #endif #if LINUX - Glade.XML gxmlTemp = new Glade.XML (Common.GladeFile, "dialogLogin", null); + Glade.XML gxmlTemp = new Glade.XML (Common.GladeFile, "dialogLogin", null); #endif gxmlTemp.Autoconnect (this); - //dialogLogin.TransientFor = windowMain; + dialogLogin.TransientFor = (Gtk.Window)CasaMain.gxmlMain.GetWidget("windowMain");; - label86.Text = "Enter your Master Password to unlock your secrets"; + label86.Text = "Enter your Master Password to unlock your secrets."; entryMasterPassword3.Text=""; label88.Hide(); entryMasterPassword4.Hide(); - dialogLogin.SetPosition(Gtk.WindowPosition.Center); + //dialogLogin.SetPosition(Gtk.WindowPosition.Center); dialogLogin.Destroyed += new EventHandler(dialogLogin_Destroyed); dialogLogin.Show(); } @@ -176,7 +176,8 @@ namespace Novell.CASA.GUI public void OnDialogLoginDeleted(object obj, DeleteEventArgs args) { - args.RetVal = true; + dialogLogin.Destroy(); + args.RetVal = true; } public void on_entryMasterPassword3_activate(object obj, EventArgs args) diff --git a/c_gui/images/casa.glade b/c_gui/images/casa.glade index b087eead..9ffd20cc 100644 --- a/c_gui/images/casa.glade +++ b/c_gui/images/casa.glade @@ -7059,7 +7059,7 @@ and try running CASAManager again. Master Password GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT - False + True False False CASAicons.ico @@ -7838,31 +7838,31 @@ prompted for the Master Password at startup. 0 True True - - - - - - True - - True - True - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - False - False + + + + + + True + + True + True + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False @@ -10886,7 +10886,7 @@ Value: True Firefox - Master Password GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_CENTER_ALWAYS + GTK_WIN_POS_CENTER_ON_PARENT True False True