diff --git a/c_gui/CasaTray.cs b/c_gui/CasaTray.cs
index d8f69d88..adc1987a 100644
--- a/c_gui/CasaTray.cs
+++ b/c_gui/CasaTray.cs
@@ -21,10 +21,11 @@ namespace Novell.CASA.GUI
public static System.Drawing.Icon m_iconNormal;
public static System.Drawing.Icon m_iconLocked;
#endif
-#if LINUX
+#if W32
EventBox eb;
private Gtk.Image m_imageLocked = new Image("gtk-dialog-authentication", IconSize.Menu);
private Gtk.Image m_imageUnlocked = new Image(Stock.MissingImage, IconSize.Menu);
+
#endif
private static CasaMain mCasaMain = null;
@@ -37,7 +38,7 @@ namespace Novell.CASA.GUI
notifyIcon = new System.Windows.Forms.NotifyIcon();
try
{
- s = File.OpenRead("../images/notify1.ico");
+ s = File.OpenRead("../images/CASAIcons.ico");
m_iconNormal = new System.Drawing.Icon(s);
notifyIcon.Icon = m_iconNormal;
}
@@ -60,14 +61,14 @@ namespace Novell.CASA.GUI
try
{
- s = File.OpenRead("../images/notifyLocked.ico");
+ s = File.OpenRead("../images/CASAIconsLocked.ico");
m_iconLocked = new System.Drawing.Icon(s);
}
catch (Exception e)
{
- Console.WriteLine("File 'notifyLocked.ico' cannot be found");
+ Console.WriteLine("File 'CASAIcons.ico' cannot be found");
return;
}
@@ -80,14 +81,16 @@ namespace Novell.CASA.GUI
}
//notifyIcon.Click +=new EventHandler(notifyIcon_Click);
notifyIcon.DoubleClick +=new EventHandler(notifyIcon_DoubleClick);
- notifyIcon.MouseUp +=new System.Windows.Forms.MouseEventHandler(notifyIcon_MouseUp);
- notifyIcon.Text = "CASA Manager";
+ notifyIcon.MouseUp +=new System.Windows.Forms.MouseEventHandler(notifyIcon_MouseUp);
notifyIcon.Visible = true;
+
+ UpdateTrayIcon(MiCASAStore.IsLocked());
+
#endif
#if LINUX
/* in order to receive signals, we need a eventbox, because Gtk.Image doesn't receive signals */
eb = new EventBox();
- eb.Add(m_iconNormal); // using stock icon
+ eb.Add(); // using stock icon
// hooking event
eb.ButtonPressEvent += new ButtonPressEventHandler (this.OnImageClick);
@@ -106,8 +109,8 @@ namespace Novell.CASA.GUI
MenuItem miSep2 = new MenuItem();
MenuItem miSep3 = new MenuItem();
- ImageMenuItem menuLaunchGUI = new ImageMenuItem ("Launch CASAManager");
- Image appimg = new Image(Stock.New, IconSize.Menu);
+ ImageMenuItem menuLaunchGUI = new ImageMenuItem ("Manage Secrets");
+ Image appimg = new Image("../images/CASA_16.png", IconSize.Menu);
menuLaunchGUI.Image = appimg; // sets the menu item's image
menuLaunchGUI.Activated +=new EventHandler(menuLaunchGUI_Activated);
popupMenu.Add(menuLaunchGUI);
@@ -263,15 +266,15 @@ namespace Novell.CASA.GUI
{
#if W32
if (StoreIsLocked)
+ {
+ notifyIcon.Text = "miCASA - Locked";
notifyIcon.Icon = m_iconLocked;
+ }
else
+ {
+ notifyIcon.Text = "miCASA - Not Locked";
notifyIcon.Icon = m_iconNormal;
-#endif
-#if LINUX
- if (StoreIsLocked)
- eb.Reparent(m_imageLocked);
- else
- eb.Reparent(m_imageUnlocked);
+ }
#endif
}
diff --git a/c_gui/images/CASAicons.ico b/c_gui/images/CASAicons.ico
new file mode 100644
index 00000000..eaae3ab1
Binary files /dev/null and b/c_gui/images/CASAicons.ico differ
diff --git a/c_gui/images/CASAiconsLocked.ico b/c_gui/images/CASAiconsLocked.ico
new file mode 100644
index 00000000..2805ed2a
Binary files /dev/null and b/c_gui/images/CASAiconsLocked.ico differ
diff --git a/c_gui/images/casa-1.5.glade b/c_gui/images/casa-1.5.glade
index a6a20b32..aa6e1b8f 100644
--- a/c_gui/images/casa-1.5.glade
+++ b/c_gui/images/casa-1.5.glade
@@ -12,7 +12,7 @@
525
True
True
- micasa-logo.png
+ CASAicons.ico
True
False
False
@@ -708,7 +708,7 @@
True
- micasa-logo.png
+ CASA_32.png
0.5
0.5
0
@@ -2064,7 +2064,7 @@ their backend stores.
600
True
True
- micasa-logo.png
+ CASAicons.ico
True
False
False
@@ -2717,7 +2717,7 @@ their backend stores.
True
- micasa-logo.png
+ CASA_32.png
0.5
0.5
0