Re: [Java-gnome-developer] Reading Quickly glade files
Brought to you by:
afcowie
From: Jacek F. <ja...@gm...> - 2010-02-03 19:01:28
|
Hi Andres, nice to see you here :-) I may be wrong, but I believe quickly is using the new GtkBuilder format (which now ships as part of GTK+) http://library.gnome.org/devel/gtk/unstable/GtkBuilder.html while Java-GNOME I think still supports only the old Glade format (which used to be a stand-alone library). More (hopefully useful) info here: http://www.micahcarrick.com/05-30-2008/gtk-builder-libglade-faq.html Anyone correct me if I am leading Andres into the wrong direction. Cheers, Jacek On Wed, Feb 3, 2010 at 1:41 PM, Andres Almiray <aal...@gm...> wrote: > Hello devs! > > I'm working on a Gtk plugin for the Griffon framework that relies on > java-gnome to do its thing (great work you guys!). > However attempts to read a glade file that was created by using Ubuntu > Quickly resulted in some manual mangling of the xml before java-gnome was > happy with it. Thought I should share what I did to get it to run > > http://www.jroller.com/aalmiray/entry/griffon_the_quickly_connection > > Basically I had to follow these steps: > > 1. change <interface> to <glade-interface> > 2. comment out <requires lib="gtk+" version="2.16"/> > 3. change all <object> elements to <widget> > 4. remove type="submenu" from every menu widget > > Also had to remove an image widget definition as the image filename was > translated (erroneously) as '/tmp/background.png' instead of > 'background.png'. Which brings me to the next point I noticed while working > with java-gnome: it expect resources to be defined as files that can be read > from the native side. This hinders the ability to place resources on the > classpath (inside jars for example) and let the library picke them up. > > Would it be possible to have the Java wrappers expose Java friendly > InputStream methods? Internally they can read a stream and feed the contents > to a temporal file, then feed the file to the native code; no changes needed > on the gtk side :-) This is actually a 'hack' I put in place on the > griffon-gtk plugin but if won't work while reading glade files. > > Cheers, > Andres > > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > |