Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Gnome and Tray
Gnome and Tray [message #445338] Tue, 02 November 2004 23:45 Go to next message
Eclipse UserFriend
Originally posted by: henning.odense.kollegienet.dk

Hi all.



Right now I am developing a cross platform app. that should reside in the
systemtray. This works fine in windows and in KDE, but I can't manage to get
it working in Gnome. (it looks like Gnome doesn't have at systemtray)



My question is. Is it possible to get information from SWT is a systemtray
isn't available in the window manager?



There is no exception raised when I do a display.getSystemTray() in either
gnome or some other windowmanager that hasn't a systemtray.



/Henning.
Re: Gnome and Tray [message #445344 is a reply to message #445338] Wed, 03 November 2004 14:44 Go to previous messageGo to next message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
Henning Skov wrote:
> Hi all.
>
>
>
> Right now I am developing a cross platform app. that should reside in the
> systemtray. This works fine in windows and in KDE, but I can't manage to get
> it working in Gnome. (it looks like Gnome doesn't have at systemtray)
>
>
>
> My question is. Is it possible to get information from SWT is a systemtray
> isn't available in the window manager?
>
>
>
> There is no exception raised when I do a display.getSystemTray() in either
> gnome or some other windowmanager that hasn't a systemtray.
>
>
>
> /Henning.
>
>
Hi Henning,

Gnome does have the equivalent of a system tray, but it is optional that
the user have it shown anywhere on screen. In Gnome, the applet is
called Panel Notification Area, and is commonly found under
Utility->Notification Area from the Add to Panel menu.

I haven't used the systemTray api, so I don't have any recommendations
for detecting whether it is available or not. Just thought you'd want
to know about how it is relevant to Gnome.

- Jeff
Re: Gnome and Tray [message #445371 is a reply to message #445338] Thu, 04 November 2004 14:27 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Henning,

There is not an api currently for determining whether a system tray is
available, but there probably should be, so I've logged
https://bugs.eclipse.org/bugs/show_bug.cgi?id=77826 .

Grant

"Henning Skov" <henning@odense.kollegienet.dk> wrote in message
news:cm9676$506$1@eclipse.org...
> Hi all.
>
>
>
> Right now I am developing a cross platform app. that should reside in the
> systemtray. This works fine in windows and in KDE, but I can't manage to
get
> it working in Gnome. (it looks like Gnome doesn't have at systemtray)
>
>
>
> My question is. Is it possible to get information from SWT is a systemtray
> isn't available in the window manager?
>
>
>
> There is no exception raised when I do a display.getSystemTray() in either
> gnome or some other windowmanager that hasn't a systemtray.
>
>
>
> /Henning.
>
>
Re: Gnome and Tray [message #446720 is a reply to message #445371] Wed, 01 December 2004 15:49 Go to previous message
Max is currently offline MaxFriend
Messages: 28
Registered: July 2009
Junior Member
Which is a duplicate of #64923 :-)

Henning, please consider voting for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=64923

In the meantime you can use this simple workaround:

/**
* This workaround determines if the underlying platform supports
* a system tray
*/
public static boolean platformHasTray()
{
String pf = SWT.getPlatform();
return (pf.equals("win32") || pf.equals("gtk")) ? true : false;
}

Regards /Max

In article <cmde7f$75o$1@eclipse.org>, grant_gayed@ca.ibm.com says...
> Hi Henning,
>
> There is not an api currently for determining whether a system tray is
> available, but there probably should be, so I've logged
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=77826 .
>
> Grant
>
> "Henning Skov" <henning@odense.kollegienet.dk> wrote in message
> news:cm9676$506$1@eclipse.org...
> > Hi all.
> >
> >
> >
> > Right now I am developing a cross platform app. that should reside in the
> > systemtray. This works fine in windows and in KDE, but I can't manage to
> get
> > it working in Gnome. (it looks like Gnome doesn't have at systemtray)
> >
> >
> >
> > My question is. Is it possible to get information from SWT is a systemtray
> > isn't available in the window manager?
> >
> >
> >
> > There is no exception raised when I do a display.getSystemTray() in either
> > gnome or some other windowmanager that hasn't a systemtray.

--
Regards Max rotvel AT bolignet-aarhus DOT dk
Previous Topic:Eclipse 3.1 M3 - Virtual TableViewer
Next Topic:KPrint for SWT Table
Goto Forum:
  


Current Time: Mon Oct 26 14:52:37 GMT 2020

Powered by FUDForum. Page generated in 0.02370 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top