Changes for linux
This commit is contained in:
parent
f19c024432
commit
143e833a8d
@ -23,8 +23,8 @@ namespace Novell.CASA.GUI
|
|||||||
#endif
|
#endif
|
||||||
#if LINUX
|
#if LINUX
|
||||||
EventBox eb;
|
EventBox eb;
|
||||||
private Gtk.Image m_imageLocked = new Image("../images/CASA_16.png", IconSize.Menu);
|
private Gtk.Image m_imageLocked = new Image("images/CASA_16.png", IconSize.Menu);
|
||||||
private Gtk.Image m_imageUnlocked = new Image("../images/CASA_16.png", IconSize.Menu);
|
private Gtk.Image m_imageUnlocked = new Image(Stock.Find, IconSize.Menu);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ namespace Novell.CASA.GUI
|
|||||||
#if LINUX
|
#if LINUX
|
||||||
/* in order to receive signals, we need a eventbox, because Gtk.Image doesn't receive signals */
|
/* in order to receive signals, we need a eventbox, because Gtk.Image doesn't receive signals */
|
||||||
eb = new EventBox();
|
eb = new EventBox();
|
||||||
eb.Add(); // using stock icon
|
eb.Add(m_imageUnlocked); // using stock icon
|
||||||
// hooking event
|
// hooking event
|
||||||
eb.ButtonPressEvent += new ButtonPressEventHandler (this.OnImageClick);
|
eb.ButtonPressEvent += new ButtonPressEventHandler (this.OnImageClick);
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ namespace Novell.CASA.GUI
|
|||||||
MenuItem miSep3 = new MenuItem();
|
MenuItem miSep3 = new MenuItem();
|
||||||
|
|
||||||
ImageMenuItem menuLaunchGUI = new ImageMenuItem ("Manage Secrets");
|
ImageMenuItem menuLaunchGUI = new ImageMenuItem ("Manage Secrets");
|
||||||
Image appimg = new Image("../images/CASA_16.png", 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user