LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-01-2009, 09:05 PM   #1
Ymir
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Rep: Reputation: 0
Writing GNOME Panel Applets with Java and Glade


Hello all. At the moment I am attempting to learn how to display a GNOME panel applet by a parsing a glade file containing the interface using the java-gnome language bindings. I already know how to do this in C, i.e. using glade_xml_new, glade_xml_signal autoconnect, etc. to parse the glade file and then call PANEL_APPLET_BONOBO_FACTORY to enter the main loop. However, for this particular project I am restricted to using just Java. I already know about the org.gnome.gtk java library that contains methods to parse the glade file. However, I am lost when it comes to entering the main loop. Is there a java-specific function that can be substituted for PANEL_APPLET_BONOBO_FACTORY or is writing a gnome panel applet impossible with Java?

Furthermore, can Java be used to parse glade files with GtkBuilder?

Thanks in advance.
 
Old 03-02-2009, 02:01 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Does this help you at all?

http://java-gnome.sourceforge.net/4....w-summary.html
 
Old 03-04-2009, 12:46 PM   #3
Ymir
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by indienick View Post
Thank you for providing a link to this documentation. However, other than a listing of Java functions for libglade, which indicates how to parse a GUI .glade file, it does not appear to indicate how to set up a gnome panel applet with Java, or how to parse a GUI XML file with GtkBuilder created by running the gtk-builder-convert script on a .glade file instead of using libglade.

Thank you for your help.
 
  


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
gnome panel applets and "hot corners" lupusyonderboy1 Linux - Newbie 2 07-01-2009 08:28 AM
writing a gnome panel applet epoo Programming 1 04-27-2007 09:11 AM
panel applets Guilherme Linux - General 4 03-20-2007 02:32 AM
Gnome Panel Applets workman161 Linux - General 0 03-31-2005 10:41 AM
Writing Java applets munchies Programming 2 09-05-2004 08:44 AM

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

All times are GMT -5. The time now is 08:29 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