Bug 141689. Prevent multiple menus.
This commit is contained in:
parent
ef80fd0ac5
commit
95544542e0
480
CASA.changes
480
CASA.changes
@ -1,238 +1,242 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 6 17:44:03 IST 2006 - smanojna@novell.com
|
Fri Jan 6 16:06:03 MST 2006 - jnorman@novell.com
|
||||||
|
- Bug 141689. Prevent multiple menus.
|
||||||
- Added ADD/MODIFY/DELETE functionalites for Keyring and KWallet
|
|
||||||
stores and was integrated with the GUI.
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 6 17:44:03 IST 2006 - smanojna@novell.com
|
||||||
- About dialog in the GUI was updated with the version info (1.6).
|
|
||||||
|
- Added ADD/MODIFY/DELETE functionalites for Keyring and KWallet
|
||||||
- KNOWN ISSUES:
|
stores and was integrated with the GUI.
|
||||||
1. Currently ADD-KEYS and DELETE-KEYS of existing secrets for Keyring
|
|
||||||
is not functional.
|
- About dialog in the GUI was updated with the version info (1.6).
|
||||||
2. Creation of new secret in Keyring (ADD-SECRET) expects a key
|
|
||||||
with the name "GKPassword" whose value will be the password for
|
- KNOWN ISSUES:
|
||||||
the respective secret. This key should not be deleted.
|
1. Currently ADD-KEYS and DELETE-KEYS of existing secrets for Keyring
|
||||||
-------------------------------------------------------------------
|
is not functional.
|
||||||
Tue Jan 3 16:01:10 MST 2006 - cmashayekhi@novell.com
|
2. Creation of new secret in Keyring (ADD-SECRET) expects a key
|
||||||
|
with the name "GKPassword" whose value will be the password for
|
||||||
- Fixed link.lux files to use $ARC parameter to eliminate the
|
the respective secret. This key should not be deleted.
|
||||||
errors caused during the build with the rpath link parameter.
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 3 16:01:10 MST 2006 - cmashayekhi@novell.com
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu Dec 22 14:37:04 MST 2005 - jnorman@novell.com
|
- Fixed link.lux files to use $ARC parameter to eliminate the
|
||||||
|
errors caused during the build with the rpath link parameter.
|
||||||
- Removed creating sym links to CASAManager files
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Thu Dec 22 14:37:04 MST 2005 - jnorman@novell.com
|
||||||
Wed Dec 21 14:17:38 MST 2005 - jnorman@novell.com
|
|
||||||
|
- Removed creating sym links to CASAManager files
|
||||||
- Bug 140056. Commented code to prevent login hangs in NDK.
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Wed Dec 21 14:17:38 MST 2005 - jnorman@novell.com
|
||||||
Tue Dec 20 11:17:38 MST 2005 - jnorman@novell.com
|
|
||||||
|
- Bug 140056. Commented code to prevent login hangs in NDK.
|
||||||
- Bug 133485. Set .miCASA files as hidden
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Tue Dec 20 11:17:38 MST 2005 - jnorman@novell.com
|
||||||
Tue Dec 20 10:40:38 MST 2005 - jnorman@novell.com
|
|
||||||
|
- Bug 133485. Set .miCASA files as hidden
|
||||||
- Bug 140057. Disable destroying secrets when locked
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Tue Dec 20 10:40:38 MST 2005 - jnorman@novell.com
|
||||||
Tue Dec 20 10:23:38 MST 2005 - jnorman@novell.com
|
|
||||||
|
- Bug 140057. Disable destroying secrets when locked
|
||||||
- Bug 140058. Update version number on GUI
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Tue Dec 20 10:23:38 MST 2005 - jnorman@novell.com
|
||||||
Sat Dec 17 08:23:38 MST 2005 - cmashayekhi@novell.com
|
|
||||||
|
- Bug 140058. Update version number on GUI
|
||||||
- Merged in the CASA.changes from Patch_1.5
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Sat Dec 17 08:23:38 MST 2005 - cmashayekhi@novell.com
|
||||||
Fri Dec 16 15:07:22 MST 2005 - cmashayekhi@novell.com
|
|
||||||
|
- Merged in the CASA.changes from Patch_1.5
|
||||||
- Compile erros in gk_ad.c were fixed to build.
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Fri Dec 16 15:07:22 MST 2005 - cmashayekhi@novell.com
|
||||||
Fri Dec 16 10:49:53 MST 2005 - cmashayekhi@novell.com
|
|
||||||
|
- Compile erros in gk_ad.c were fixed to build.
|
||||||
- Checked in for changes in ADLib for Add-Modify-Delete for
|
|
||||||
KWallet and Gnome Keyring.
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 16 10:49:53 MST 2005 - cmashayekhi@novell.com
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Dec 16 08:55:06 MST 2005 - jluciani@novell.com
|
- Checked in for changes in ADLib for Add-Modify-Delete for
|
||||||
|
KWallet and Gnome Keyring.
|
||||||
-Fixed compiler warnings in auth-token stuff.
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Fri Dec 16 08:55:06 MST 2005 - jluciani@novell.com
|
||||||
Wed Dec 14 10:57:46 MST 2005 - jnorman@novell.com
|
|
||||||
|
-Fixed compiler warnings in auth-token stuff.
|
||||||
-Bug 138355. Delay persistence until home directory is created.
|
|
||||||
prevent closing session prematurely (pam_sscs.c)
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 14 10:57:46 MST 2005 - jnorman@novell.com
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Dec 14 10:22:46 MST 2005 - jluciani@novell.com
|
-Bug 138355. Delay persistence until home directory is created.
|
||||||
|
prevent closing session prematurely (pam_sscs.c)
|
||||||
-Added authentication token stuff into the mix.
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Wed Dec 14 10:22:46 MST 2005 - jluciani@novell.com
|
||||||
Tue Dec 13 15:29:59 MST 2005 - cmashayekhi@novell.com
|
|
||||||
|
-Added authentication token stuff into the mix.
|
||||||
- Patch build revision number is set to 198.
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Tue Dec 13 15:29:59 MST 2005 - cmashayekhi@novell.com
|
||||||
Tue Dec 13 15:20:53 MST 2005 - cmashayekhi@novell.com
|
|
||||||
|
- Patch build revision number is set to 198.
|
||||||
- Bug 138355. Delay persistence until the users home directory
|
|
||||||
is created (SecretStore.cs). This was done for LUM integration
|
-------------------------------------------------------------------
|
||||||
- On SessionClose in PAM (sscs_pam.c), change SSFlags to 0 on
|
Tue Dec 13 15:20:53 MST 2005 - cmashayekhi@novell.com
|
||||||
CloseSecretStoreCache to prevent closing session early.
|
|
||||||
|
- Bug 138355. Delay persistence until the users home directory
|
||||||
-------------------------------------------------------------------
|
is created (SecretStore.cs). This was done for LUM integration
|
||||||
Mon Dec 12 15:39:59 MST 2005 - cmashayekhi@novell.com
|
- On SessionClose in PAM (sscs_pam.c), change SSFlags to 0 on
|
||||||
|
CloseSecretStoreCache to prevent closing session early.
|
||||||
- FINAL Patch build revision number is set to 190.
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Mon Dec 12 15:39:59 MST 2005 - cmashayekhi@novell.com
|
||||||
Mon Dec 12 15:29:59 MST 2005 - cmashayekhi@novell.com
|
|
||||||
|
- FINAL Patch build revision number is set to 190.
|
||||||
- Patch build revision number is set to 189
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Mon Dec 12 15:29:59 MST 2005 - cmashayekhi@novell.com
|
||||||
Mon Dec 12 09:29:59 MST 2005 - cmashayekhi@novell.com
|
|
||||||
|
- Patch build revision number is set to 189
|
||||||
- Added patch changes that Rudy made on Nov. 14th to
|
|
||||||
checkin to the stable branch.
|
-------------------------------------------------------------------
|
||||||
- Changes made to CASA.spec and pam_sscs.c
|
Mon Dec 12 09:29:59 MST 2005 - cmashayekhi@novell.com
|
||||||
- Fixed build in stable: add qt-bindir to PATH
|
|
||||||
- include syslog.h for LOG_ERR
|
- Added patch changes that Rudy made on Nov. 14th to
|
||||||
|
checkin to the stable branch.
|
||||||
|
- Changes made to CASA.spec and pam_sscs.c
|
||||||
-------------------------------------------------------------------
|
- Fixed build in stable: add qt-bindir to PATH
|
||||||
Tue Dec 6 15:43:46 MST 2005 - jnorman@novell.com
|
- include syslog.h for LOG_ERR
|
||||||
|
|
||||||
-Added AssemblyInfo files to all DotNET modules
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Tue Dec 6 15:43:46 MST 2005 - jnorman@novell.com
|
||||||
Tue Dec 6 09:43:46 MST 2005 - cmashayekhi@novell.com
|
|
||||||
|
-Added AssemblyInfo files to all DotNET modules
|
||||||
-Reverting back to build 166 changes and updating the CASA.spec
|
|
||||||
to run pre and post script.
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 6 09:43:46 MST 2005 - cmashayekhi@novell.com
|
||||||
-------------------------------------------------------------------
|
|
||||||
Mon Dec 5 13:32:23 MST 2005 - jnorman@novell.com
|
-Reverting back to build 166 changes and updating the CASA.spec
|
||||||
|
to run pre and post script.
|
||||||
- Bug 136523. Fix KWallet code to show KWallet secrets.
|
|
||||||
fix made in kwallets_rw.cpp
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 5 13:32:23 MST 2005 - jnorman@novell.com
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Dec 2 16:35:38 MST 2005 - jnorman@novell.com
|
- Bug 136523. Fix KWallet code to show KWallet secrets.
|
||||||
|
fix made in kwallets_rw.cpp
|
||||||
- Bug 136527. Add handlers on KDEStore and GNOME Store code
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Fri Dec 2 16:35:38 MST 2005 - jnorman@novell.com
|
||||||
Fri Dec 2 15:11:49 MST 2005 - cmashayekhi@novell.com
|
|
||||||
|
- Bug 136527. Add handlers on KDEStore and GNOME Store code
|
||||||
- Bug 136221, workaround in CASA.spec file were removed because
|
|
||||||
they were not changes for supported intended use of the
|
-------------------------------------------------------------------
|
||||||
product. Instead the readme was updated.
|
Fri Dec 2 15:11:49 MST 2005 - cmashayekhi@novell.com
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
- Bug 136221, workaround in CASA.spec file were removed because
|
||||||
Fri Dec 02 10:34:02 MST 2005 - jnorman@novell.com
|
they were not changes for supported intended use of the
|
||||||
|
product. Instead the readme was updated.
|
||||||
- Bug 134096, add CASAManager.exe.config.
|
|
||||||
- Bug 136224, Document Readme for random crash on 64 bit.
|
-------------------------------------------------------------------
|
||||||
- Bug 136226, Launch kde-open on kde desktops, and gnome-open on
|
Fri Dec 02 10:34:02 MST 2005 - jnorman@novell.com
|
||||||
gnome for help files
|
|
||||||
- Bug 136221, Attempt to prevent installing 32bit rpms on
|
- Bug 134096, add CASAManager.exe.config.
|
||||||
64 bit platforms as a workaround.
|
- Bug 136224, Document Readme for random crash on 64 bit.
|
||||||
- Added CASA_dbg.spec file to build debug RPMs on autobuild
|
- Bug 136226, Launch kde-open on kde desktops, and gnome-open on
|
||||||
|
gnome for help files
|
||||||
-------------------------------------------------------------------
|
- Bug 136221, Attempt to prevent installing 32bit rpms on
|
||||||
Wed Nov 30 10:34:02 MST 2005 - jnorman@novell.com
|
64 bit platforms as a workaround.
|
||||||
|
- Added CASA_dbg.spec file to build debug RPMs on autobuild
|
||||||
- Bug 134096, Fixed Wrapper code for proper structure marshaling.
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Wed Nov 30 10:34:02 MST 2005 - jnorman@novell.com
|
||||||
Tue Nov 29 17:01:09 MST 2005 - jnorman@novell.com
|
|
||||||
|
- Bug 134096, Fixed Wrapper code for proper structure marshaling.
|
||||||
- Bug: 134096 Fix CASA gui for 64 bit
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Tue Nov 29 17:01:09 MST 2005 - jnorman@novell.com
|
||||||
Wed Nov 24 14:09:19 MST 2005 - jnorman@novell.com
|
|
||||||
|
- Bug: 134096 Fix CASA gui for 64 bit
|
||||||
- Bug fixes: 135387, 135393
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Wed Nov 24 14:09:19 MST 2005 - jnorman@novell.com
|
||||||
|
|
||||||
Wed Nov 23 07:18:23 MST 2005 - cmashayekhi@novell.com
|
- Bug fixes: 135387, 135393
|
||||||
|
|
||||||
- c_gui/CASAManager.sh was fixed to support lib64 directory.
|
-------------------------------------------------------------------
|
||||||
- c_micasad/startup/micasad.sh was fixed to support lib64.
|
|
||||||
|
Wed Nov 23 07:18:23 MST 2005 - cmashayekhi@novell.com
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Nov 23 16:09:19 MST 2005 - jnorman@novell.com
|
- c_gui/CASAManager.sh was fixed to support lib64 directory.
|
||||||
|
- c_micasad/startup/micasad.sh was fixed to support lib64.
|
||||||
- changed PAM Capture to find libmicasa in path
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Wed Nov 23 16:09:19 MST 2005 - jnorman@novell.com
|
||||||
Wed Nov 18 14:09:19 MST 2005 - jnorman@novell.com
|
|
||||||
|
- changed PAM Capture to find libmicasa in path
|
||||||
- Change GUI dependency from gtk2-devel to gtk2.
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Wed Nov 18 14:09:19 MST 2005 - jnorman@novell.com
|
||||||
Wed Nov 16 13:42:19 MST 2005 - jnorman@novell.com
|
|
||||||
|
- Change GUI dependency from gtk2-devel to gtk2.
|
||||||
- Bug 133479. Clear Native information when destroying secrets or refreshing
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Wed Nov 16 13:42:19 MST 2005 - jnorman@novell.com
|
||||||
Tue Nov 15 14:54:19 MST 2005 - jnorman@novell.com
|
|
||||||
|
- Bug 133479. Clear Native information when destroying secrets or refreshing
|
||||||
- Added gtk2-devel dependency to CASA-gui rpm
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Tue Nov 15 14:54:19 MST 2005 - jnorman@novell.com
|
||||||
Mon Nov 14 15:56:59 MST 2005 - cmashayekhi@novell.com
|
|
||||||
|
- Added gtk2-devel dependency to CASA-gui rpm
|
||||||
- Bug 133705 having to do with licenses in the source files
|
|
||||||
was fixed.
|
-------------------------------------------------------------------
|
||||||
- CASA.spec was modified to accomodate for auto build scripts.
|
Mon Nov 14 15:56:59 MST 2005 - cmashayekhi@novell.com
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Nov 11 08:26:50 MST 2005 - jnorman@novell.com
|
- Bug 133705 having to do with licenses in the source files
|
||||||
|
was fixed.
|
||||||
- Added help files, and code to launch help files to GUI
|
- CASA.spec was modified to accomodate for auto build scripts.
|
||||||
|
-------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------
|
Fri Nov 11 08:26:50 MST 2005 - jnorman@novell.com
|
||||||
Thu Nov 10 12:32:38 MST 2005 - jnorman@novell.com
|
|
||||||
|
- Added help files, and code to launch help files to GUI
|
||||||
- Replaced changes.log with CASA.changes in the src tree to be
|
|
||||||
consistent with autobuild
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 10 12:32:38 MST 2005 - jnorman@novell.com
|
||||||
-------------------------------------------------------------------
|
|
||||||
Mon Nov 7 16:44:00 MST 2005 - cameron@novell.com
|
- Replaced changes.log with CASA.changes in the src tree to be
|
||||||
|
consistent with autobuild
|
||||||
- CASA.spec and versioning number was modified to support build
|
|
||||||
number as a part of the rpm version.
|
-------------------------------------------------------------------
|
||||||
- lib*.so versioning was changed to support linux format versioning
|
Mon Nov 7 16:44:00 MST 2005 - cameron@novell.com
|
||||||
numbers. CASA libs are at 1.1.1 now.
|
|
||||||
- Build scripts were modified to support $RPM_OPT_FLAGS.
|
- CASA.spec and versioning number was modified to support build
|
||||||
- Added persistence without desktop credentials.
|
number as a part of the rpm version.
|
||||||
- Bug 130336 -- resevered escaped chars was fixed.
|
- lib*.so versioning was changed to support linux format versioning
|
||||||
- Bug 130518 -- invalid param exception handling was
|
numbers. CASA libs are at 1.1.1 now.
|
||||||
fixed.
|
- Build scripts were modified to support $RPM_OPT_FLAGS.
|
||||||
- Support for extended ascii and double byte chars in
|
- Added persistence without desktop credentials.
|
||||||
GUI was added.
|
- Bug 130336 -- resevered escaped chars was fixed.
|
||||||
- Finalized GUI cosmetic changes.
|
- Bug 130518 -- invalid param exception handling was
|
||||||
|
fixed.
|
||||||
----------------------------------------------------------------
|
- Support for extended ascii and double byte chars in
|
||||||
Thu Oct 27 11:40:20 MDT 2005 - cmashayekhi@novell.com
|
GUI was added.
|
||||||
-The image version to 1.5.0
|
- Finalized GUI cosmetic changes.
|
||||||
Files:
|
|
||||||
- Work area was cleaned up for the final build.
|
----------------------------------------------------------------
|
||||||
- CASA.spec was modified to requirement.
|
Thu Oct 27 11:40:20 MDT 2005 - cmashayekhi@novell.com
|
||||||
- Minor bug fixes were applied.
|
-The image version to 1.5.0
|
||||||
----------------------------------------------------------------
|
Files:
|
||||||
Thu Oct 19 14:46:33 MDT 2005 - cmashayekhi@novell.com
|
- Work area was cleaned up for the final build.
|
||||||
-The image version to 1.5.0
|
- CASA.spec was modified to requirement.
|
||||||
Files:
|
- Minor bug fixes were applied.
|
||||||
- Moving from version 1.0.0 to 1.5.0 as per PRD.
|
----------------------------------------------------------------
|
||||||
----------------------------------------------------------------
|
Thu Oct 19 14:46:33 MDT 2005 - cmashayekhi@novell.com
|
||||||
|
-The image version to 1.5.0
|
||||||
|
Files:
|
||||||
|
- Moving from version 1.0.0 to 1.5.0 as per PRD.
|
||||||
|
----------------------------------------------------------------
|
||||||
|
@ -29,6 +29,7 @@ namespace Novell.CASA.GUI
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
private static CasaMain mCasaMain = null;
|
private static CasaMain mCasaMain = null;
|
||||||
|
private Menu popupMenu = null;
|
||||||
|
|
||||||
public CasaTray(CasaMain casaInstance)
|
public CasaTray(CasaMain casaInstance)
|
||||||
{
|
{
|
||||||
@ -114,75 +115,84 @@ namespace Novell.CASA.GUI
|
|||||||
|
|
||||||
private void ShowContextMenu()
|
private void ShowContextMenu()
|
||||||
{
|
{
|
||||||
Menu popupMenu = new Menu(); // creates the menu
|
if (popupMenu != null && popupMenu.Visible)
|
||||||
|
{
|
||||||
|
popupMenu.Destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (popupMenu == null || !popupMenu.Visible)
|
||||||
|
{
|
||||||
|
popupMenu = new Menu(); // creates the menu
|
||||||
|
|
||||||
MenuItem miSep = new MenuItem();
|
MenuItem miSep = new MenuItem();
|
||||||
MenuItem miSep2 = new MenuItem();
|
MenuItem miSep2 = new MenuItem();
|
||||||
MenuItem miSep3 = new MenuItem();
|
MenuItem miSep3 = new MenuItem();
|
||||||
|
|
||||||
ImageMenuItem menuLaunchGUI = new ImageMenuItem ("Manage Secrets");
|
ImageMenuItem menuLaunchGUI = new ImageMenuItem ("Manage Secrets");
|
||||||
Image appimg = new Image(Stock.New, IconSize.Menu);
|
Image appimg = new Image(Stock.New, IconSize.Menu);
|
||||||
menuLaunchGUI.Image = appimg; // sets the menu item's image
|
menuLaunchGUI.Image = appimg; // sets the menu item's image
|
||||||
menuLaunchGUI.Activated +=new EventHandler(menuLaunchGUI_Activated);
|
menuLaunchGUI.Activated +=new EventHandler(menuLaunchGUI_Activated);
|
||||||
popupMenu.Add(menuLaunchGUI);
|
popupMenu.Add(menuLaunchGUI);
|
||||||
popupMenu.Add(miSep);
|
popupMenu.Add(miSep);
|
||||||
|
|
||||||
ImageMenuItem menuLockMiCasa = new ImageMenuItem ("Lock Secrets");
|
ImageMenuItem menuLockMiCasa = new ImageMenuItem ("Lock Secrets");
|
||||||
|
|
||||||
//appimg = new Image(Stock.Close, IconSize.Menu);
|
//appimg = new Image(Stock.Close, IconSize.Menu);
|
||||||
appimg = new Image("gtk-dialog-authentication", IconSize.Menu);
|
appimg = new Image("gtk-dialog-authentication", IconSize.Menu);
|
||||||
menuLockMiCasa.Image = appimg; // sets the menu item's image
|
menuLockMiCasa.Image = appimg; // sets the menu item's image
|
||||||
menuLockMiCasa.Activated +=new EventHandler(menuLockMiCasa_Activated);
|
menuLockMiCasa.Activated +=new EventHandler(menuLockMiCasa_Activated);
|
||||||
|
|
||||||
ImageMenuItem menuUnLockMiCasa = new ImageMenuItem ("Unlock Secrets...");
|
ImageMenuItem menuUnLockMiCasa = new ImageMenuItem ("Unlock Secrets...");
|
||||||
appimg = new Image(Stock.Open, IconSize.Menu);
|
appimg = new Image(Stock.Open, IconSize.Menu);
|
||||||
menuUnLockMiCasa.Image = appimg; // sets the menu item's image
|
menuUnLockMiCasa.Image = appimg; // sets the menu item's image
|
||||||
menuUnLockMiCasa.Activated +=new EventHandler(menuLockMiCasa_Activated);
|
menuUnLockMiCasa.Activated +=new EventHandler(menuLockMiCasa_Activated);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
popupMenu.Add(menuLockMiCasa);
|
popupMenu.Add(menuLockMiCasa);
|
||||||
popupMenu.Add(menuUnLockMiCasa);
|
popupMenu.Add(menuUnLockMiCasa);
|
||||||
|
|
||||||
popupMenu.Add(miSep2);
|
popupMenu.Add(miSep2);
|
||||||
|
|
||||||
ImageMenuItem menuDestroyMiCasa = new ImageMenuItem ("Destroy Secrets");
|
ImageMenuItem menuDestroyMiCasa = new ImageMenuItem ("Destroy Secrets");
|
||||||
appimg = new Image(Stock.Delete, IconSize.Menu);
|
appimg = new Image(Stock.Delete, IconSize.Menu);
|
||||||
menuDestroyMiCasa.Image = appimg; // sets the menu item's image
|
menuDestroyMiCasa.Image = appimg; // sets the menu item's image
|
||||||
menuDestroyMiCasa.Activated +=new EventHandler(menuDestroyMiCasa_Activated);
|
menuDestroyMiCasa.Activated +=new EventHandler(menuDestroyMiCasa_Activated);
|
||||||
popupMenu.Add(menuDestroyMiCasa);
|
popupMenu.Add(menuDestroyMiCasa);
|
||||||
|
|
||||||
if (MiCASAStore.IsLocked())
|
if (MiCASAStore.IsLocked())
|
||||||
{
|
{
|
||||||
menuLockMiCasa.Sensitive = false;
|
menuLockMiCasa.Sensitive = false;
|
||||||
menuDestroyMiCasa.Sensitive = false;
|
menuDestroyMiCasa.Sensitive = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
menuUnLockMiCasa.Sensitive = false;
|
||||||
|
menuDestroyMiCasa.Sensitive = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
ImageMenuItem menuOptionsMiCasa = new ImageMenuItem ("Options ....");
|
||||||
|
menuOptionsMiCasa.Sensitive = false;
|
||||||
|
popupMenu.Add(menuOptionsMiCasa);
|
||||||
|
|
||||||
|
popupMenu.Add(miSep3);
|
||||||
|
|
||||||
|
// creates a menu item with no image as default
|
||||||
|
ImageMenuItem menuPopup1 = new ImageMenuItem ("Exit");
|
||||||
|
appimg = new Image(Stock.Quit, IconSize.Menu);
|
||||||
|
menuPopup1.Image = appimg; // sets the menu item's image
|
||||||
|
popupMenu.Add(menuPopup1); // adds the menu item to the menu
|
||||||
|
|
||||||
|
// hooks a event when the user clicks the icon
|
||||||
|
menuPopup1.Activated += new EventHandler(this.OnPopupClick);
|
||||||
|
popupMenu.ShowAll(); // shows everything
|
||||||
|
|
||||||
|
// pops up the actual menu when the user right clicks
|
||||||
|
//popupMenu.Popup(null, null, null, IntPtr.Zero, args.Event.Button, args.Event.Time);
|
||||||
|
|
||||||
|
popupMenu.Popup();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
menuUnLockMiCasa.Sensitive = false;
|
|
||||||
menuDestroyMiCasa.Sensitive = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
ImageMenuItem menuOptionsMiCasa = new ImageMenuItem ("Options ....");
|
|
||||||
menuOptionsMiCasa.Sensitive = false;
|
|
||||||
popupMenu.Add(menuOptionsMiCasa);
|
|
||||||
|
|
||||||
popupMenu.Add(miSep3);
|
|
||||||
|
|
||||||
// creates a menu item with no image as default
|
|
||||||
ImageMenuItem menuPopup1 = new ImageMenuItem ("Exit");
|
|
||||||
appimg = new Image(Stock.Quit, IconSize.Menu);
|
|
||||||
menuPopup1.Image = appimg; // sets the menu item's image
|
|
||||||
popupMenu.Add(menuPopup1); // adds the menu item to the menu
|
|
||||||
|
|
||||||
// hooks a event when the user clicks the icon
|
|
||||||
menuPopup1.Activated += new EventHandler(this.OnPopupClick);
|
|
||||||
popupMenu.ShowAll(); // shows everything
|
|
||||||
|
|
||||||
// pops up the actual menu when the user right clicks
|
|
||||||
//popupMenu.Popup(null, null, null, IntPtr.Zero, args.Event.Button, args.Event.Time);
|
|
||||||
|
|
||||||
popupMenu.Popup();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnImageClick (object o, ButtonPressEventArgs args) // handler for mouse click
|
private void OnImageClick (object o, ButtonPressEventArgs args) // handler for mouse click
|
||||||
|
Loading…
Reference in New Issue
Block a user