Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-22-2006, 02:59 PM   #1
LQ Newbie
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
Notification area (system tray) and other questions

I am using Fedora 5 with a Gnome Desktop version 2.14.0, GTK+ 2.8 and Libegg 1.2 to develop an application that will reside in the notification area (system tray).

I am trying to replace the standard context menu (menu with close, minimize, maximize etc.) of the icon in the notification area with my custom menu. Unfortunately, I'm not making any progress. So, can anybody help me with replacing or overriding the standard context menu with my custom menu?

BTW, I'm using the testtray.c found in Libegg as my starting point.

Also, is there any way to prevent multiple instances of the same executable? I want to prevent the end user from starting multiple copies of my application. For example, I want to convert the following Windows code

HANDLE hMutex = CreateMutex(NULL, TRUE, UNIQUE);
if(GetLastError() == ERROR_ALREADY_EXISTS)
     // Application already running
     return FALSE;
to a Linux equivalent.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Notification area in Gnome 54d1 Linux - Software 0 10-25-2005 04:31 AM
gnome notification area sailu_mvn Fedora 4 03-01-2005 03:55 PM
Notification Area in GNOME 2.4 Jose Muņiz Linux - Software 0 01-07-2004 02:36 AM
Notification Area Crash gilberto Slackware 1 04-19-2003 09:32 PM
notification-area-applet gilberto Linux - General 0 04-19-2003 04:22 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration