LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-22-2006, 01:59 PM   #1
BobS0327
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

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

Thanx
 
  


Reply



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 03:31 AM
gnome notification area sailu_mvn Fedora 4 03-01-2005 02:55 PM
Notification Area in GNOME 2.4 Jose Muņiz Linux - Software 0 01-07-2004 01:36 AM
Notification Area Crash gilberto Slackware 1 04-19-2003 08:32 PM
notification-area-applet gilberto Linux - General 0 04-19-2003 03:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:45 AM.

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