LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-23-2005, 04:55 PM   #1
Promit
LQ Newbie
 
Registered: Apr 2005
Posts: 1

Rep: Reputation: 0
gnome-panel Applet (Gtk+)


I need some help with Gtk+, specifically in writing a gnome-panel applet. I can find resources on regular Gtk+ stuff, but panel applets are a little different since they're embedded bonobo controls...worse still, they weren't always this way and finding information that is actually relevant to recent versions of GNOME is difficult.

So, for the specifics:
1) I need to populate a popup menu at runtime, on a left click (i.e. I don't want to modify the context menu that shows up on right click). Note that in this case there's no parent menubar widget, which leaves me a little confused about exactly how to construct this menu and where to put it.

2) When someone selects an item in the menu, I need either the string label of the selected item or an array index from the menu, preferably the former. This is also a little weird, since normally you'd be registering callbacks for item click events. In my case, I don't know the possible menu items at compile time, so there's no way for me to link give it callback functions for each menu item.

3) When the menu is opened, I want to highlight or put a check mark beside a specific item, again looked up by string.
 
Old 04-23-2005, 09:34 PM   #2
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Rep: Reputation: 31
I'm not very experienced, but have you checked out the documentation on bonobo stuff and libpanel-applet at http://developer.gnome.org/doc/API/ ?
 
  


Reply


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
GTK themes not showing up until I go into GNOME control panel nagromo Linux - Software 2 12-12-2004 02:36 PM
adding a gnome applet to the panel from the command line meonkeys Programming 1 04-23-2004 05:35 AM
Where did the Drake Control panel applet go? wcman Mandriva 2 04-13-2004 11:13 PM
GNOME (panel applet + gdm) badmouth Linux - General 4 07-02-2003 05:42 AM
How do you remove an applet from the KDE Panel? frotzed Linux - Newbie 2 04-06-2002 06:45 PM


All times are GMT -5. The time now is 11:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration