java-gnome-developer Mailing List for The java-gnome language bindings project (Page 22)
Brought to you by:
afcowie
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(37) |
Dec
(14) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(2) |
Feb
(20) |
Mar
(20) |
Apr
(8) |
May
|
Jun
(1) |
Jul
(6) |
Aug
(39) |
Sep
(37) |
Oct
(34) |
Nov
(50) |
Dec
(22) |
2002 |
Jan
(7) |
Feb
(13) |
Mar
(32) |
Apr
(16) |
May
(26) |
Jun
(20) |
Jul
(32) |
Aug
(7) |
Sep
(2) |
Oct
(11) |
Nov
(3) |
Dec
(35) |
2003 |
Jan
(11) |
Feb
(3) |
Mar
(8) |
Apr
(3) |
May
(11) |
Jun
(20) |
Jul
(11) |
Aug
(29) |
Sep
(13) |
Oct
(91) |
Nov
(185) |
Dec
(207) |
2004 |
Jan
(108) |
Feb
(171) |
Mar
(207) |
Apr
(113) |
May
(22) |
Jun
(53) |
Jul
(69) |
Aug
(43) |
Sep
(34) |
Oct
(182) |
Nov
(101) |
Dec
(61) |
2005 |
Jan
(86) |
Feb
(45) |
Mar
(106) |
Apr
(67) |
May
(70) |
Jun
(47) |
Jul
(19) |
Aug
(34) |
Sep
(24) |
Oct
(45) |
Nov
(20) |
Dec
(58) |
2006 |
Jan
(21) |
Feb
(21) |
Mar
(16) |
Apr
(24) |
May
(24) |
Jun
(47) |
Jul
(20) |
Aug
(8) |
Sep
(13) |
Oct
(7) |
Nov
(23) |
Dec
(2) |
2007 |
Jan
|
Feb
(14) |
Mar
(3) |
Apr
(11) |
May
(1) |
Jun
(15) |
Jul
(2) |
Aug
(5) |
Sep
(10) |
Oct
(5) |
Nov
(1) |
Dec
|
2008 |
Jan
|
Feb
(13) |
Mar
(13) |
Apr
(4) |
May
(2) |
Jun
(1) |
Jul
(5) |
Aug
(7) |
Sep
(2) |
Oct
(14) |
Nov
(11) |
Dec
(12) |
2009 |
Jan
(30) |
Feb
(4) |
Mar
(16) |
Apr
(9) |
May
(9) |
Jun
(7) |
Jul
(6) |
Aug
(3) |
Sep
(14) |
Oct
(8) |
Nov
(12) |
Dec
(9) |
2010 |
Jan
(4) |
Feb
(27) |
Mar
(6) |
Apr
(4) |
May
(3) |
Jun
(13) |
Jul
(6) |
Aug
(15) |
Sep
(15) |
Oct
(12) |
Nov
(11) |
Dec
(9) |
2011 |
Jan
(12) |
Feb
(11) |
Mar
|
Apr
(3) |
May
|
Jun
(3) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
(8) |
Nov
(1) |
Dec
|
2012 |
Jan
|
Feb
(10) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(6) |
Aug
(2) |
Sep
(7) |
Oct
(7) |
Nov
|
Dec
(4) |
2013 |
Jan
(8) |
Feb
(1) |
Mar
(1) |
Apr
(2) |
May
(3) |
Jun
(3) |
Jul
(16) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2014 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Glen C. <abe...@ho...> - 2006-12-20 23:52:35
|
Hello, I'm running Gnome 2.16.1, and I'm trying to just run a simple 'First= ' App. I'm sure it looks familiar...import org.gnu.gnome.App;import org.gnu= .gnome.Program;import org.gnu.gtk.Gtk;public class First { public static= void main(String[] args) { // Initialization Program.initGno= meUI("First", "0.1", args); App app =3D new App("First", "First App"= ); app.show(); Gtk.main(); }Unfortunately, I get the follo= wing error:gclarkson@gclarkson-desktop:~$ java -cp /usr/share/java/gnome2.1= 2.jar:/usr/share/java/gtk2.10.jar:/usr/share/java/glib0.4.jar:. -Djava.libr= ary.path=3D/usr/lib/jni:/usr/lib FirstException in thread "main" java.lang.= UnsatisfiedLinkError: /usr/lib/jni/libglibjni-0.4.so: /usr/lib/jni/libglibj= ni-0.4.so: undefined symbol: g_type_depth at java.lang.ClassLoader$N= ativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrar= y0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(Class= Loader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:822= ) at java.lang.System.loadLibrary(System.java:993) at org.gnu= .glib.Struct.<clinit>(Struct.java:85) at First.main(First.java:9)Ple= ase let me know how to fix this, or if there's any additional information n= eeded.Thanks very much! _________________________________________________________________ Try amazing new 3D maps http://maps.live.com/?wip=3D51= |
From: <pab...@ho...> - 2006-12-04 21:54:52
|
Hi, anybody knows if it's possible to draw columns lines on a treeview and how can i do it? Thanks. _________________________________________________________________ Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor & Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349 |
From: Marc R. <mar...@gm...> - 2006-11-29 18:02:20
|
Hi, is there any way to store actual objects in a TreeStore instead of the string value? For example, normally I call the setValue() method in the TreeStore, and pass in a tree iter, data column and string value. What I really want to do is stuff a set of objects in a Tree and be able to get the selected object back; somehow, a renderer somewhere would render the object to a string for displaying in the tree cell (similar to how swing works). Is this possible? Marc |
From: <pab...@ho...> - 2006-11-29 16:33:01
|
Thanks all for your answers, finally i resolved it. It was a problem of glade3. I installed glade2 and do again the interface and all works fine. >From: "Remy Suen" <rem...@gm...> >To: jav...@li... >Subject: Re: [Java-gnome-developer] Problems with Eclipse >Date: Wed, 29 Nov 2006 14:25:46 +0800 > >Hi Pablo, > >On 11/29/06, Pablo Martín <pab...@ho...> wrote: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no >gladejni-2.12 > > in java.library.path > > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) > > at java.lang.Runtime.loadLibrary0(Runtime.java:822) > > at java.lang.System.loadLibrary(System.java:993) > > at org.gnu.glade.LibGlade.<clinit>(LibGlade.java:262) > > at PruebaGlade.<init>(PruebaGlade.java:19) > > at PruebaGlade.main(PruebaGlade.java:32) > > > > I've tried with different path like /usr/lib/ and /usr/lib/jni obtaining >the > > same result. > > > > Any body knows why it's happening? > >Okay, where is libgladejni-2.12.so located on your computer? What is >the argument that you have specified in Eclipse's "VM Arguments" >textbox in your run configuration? Have you tried running your >application from the command line? Does it work? In Eclipse's "Debug" >view (Window -> Show View -> Other -> Debug -> Debug), right-click on >your terminated process, access its properties, what is the command >line argument? > > > it could be a problem of new versions of java-gnome??? > >I find this highly unlikely despite being out of the loop since September. > >Regards, >Rem > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share >your >opinions on IT & business topics through brief surveys - and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >java-gnome-developer mailing list >jav...@li... >https://lists.sourceforge.net/lists/listinfo/java-gnome-developer _________________________________________________________________ Acepta el reto MSN Premium: Protección para tus hijos en internet. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_proteccioninfantil |
From: Remy S. <rem...@gm...> - 2006-11-29 06:25:50
|
Hi Pablo, On 11/29/06, Pablo Mart=EDn <pab...@ho...> wrote: > Exception in thread "main" java.lang.UnsatisfiedLinkError: no gladejni-2.= 12 > in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) > at java.lang.Runtime.loadLibrary0(Runtime.java:822) > at java.lang.System.loadLibrary(System.java:993) > at org.gnu.glade.LibGlade.<clinit>(LibGlade.java:262) > at PruebaGlade.<init>(PruebaGlade.java:19) > at PruebaGlade.main(PruebaGlade.java:32) > > I've tried with different path like /usr/lib/ and /usr/lib/jni obtaining = the > same result. > > Any body knows why it's happening? Okay, where is libgladejni-2.12.so located on your computer? What is the argument that you have specified in Eclipse's "VM Arguments" textbox in your run configuration? Have you tried running your application from the command line? Does it work? In Eclipse's "Debug" view (Window -> Show View -> Other -> Debug -> Debug), right-click on your terminated process, access its properties, what is the command line argument? > it could be a problem of new versions of java-gnome??? I find this highly unlikely despite being out of the loop since September. Regards, Rem |
From: <pab...@ho...> - 2006-11-28 20:41:42
|
Hello everybody, I've installed recently ubuntu edgy. Today, i have download all packages of java-gnome, and when i tried to develop and application (Eclipse + Glade) I've founded some problems. These are about the exception: java.lang.UnsatisfiedLinkError I've put the string argument correctly like the example of java gnome web, but i obtained the error: Exception in thread "main" java.lang.UnsatisfiedLinkError: no gladejni-2.12 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at org.gnu.glade.LibGlade.<clinit>(LibGlade.java:262) at PruebaGlade.<init>(PruebaGlade.java:19) at PruebaGlade.main(PruebaGlade.java:32) I've tried with different path like /usr/lib/ and /usr/lib/jni obtaining the same result. Any body knows why it's happening? it could be a problem of new versions of java-gnome??? _________________________________________________________________ Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor & Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349 |
From: pancake <pa...@ph...> - 2006-11-28 16:21:36
|
Hi Chris! Welcome to the boat! > Hello, my name is Chris. I am a CS student learning programming that finished the Data Stuctures class last using the Java language. I use Linux often and as my main OS. I found the Java Gnome project through Google, and now I want to get started. What should I read first? Should I read about gtk programming first? I thought it was used with the C language, so I will not understand it much. I have Eclipse IDE and Glade, and I watched the flash video. How do I get started? Thanks. I recommend you to read some tutorials and documentation here: http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/HintsAndTips Get a look on the javadoc too: http://java-gnome.sourceforge.net/docs/javadoc/index.html I always use VIM for coding, btw I understand that most people will prefer an IDE like eclipse with autocompletion and integrated javadoc. Glade allows you to reduce drastically your LOCs and keep your software easily maintainable and portable to other languages without huge effort. So, I recommend you to start coding simple hello worlds with your favorite editor, and later make use of a complete IDE that will make you probably happier. If you get the basics of the JavaGnome API you'll be able to develop apps fastly without having to read javadoc or use autocompletion, because most of it is bastly logical and easy to use. :) --pancake |
From: Remy S. <rem...@gm...> - 2006-11-28 08:27:12
|
Hi Chris, On 11/28/06, Chris Lemire <goo...@ya...> wrote: > I have Eclipse IDE and Glade, and I watched the flash > video. How do I get started? Thanks. Well, I think if you've seen the video, you should probably understand how the bare basics work. There is some other documentation located at our website [1] that may be of your interest. I don't really know how to answer a "How do I get started?" since it's a pretty broad question. For myself I started out using Glade and tried to develop a little application. Best way to learn an API is to try to use it, so I guess you could try starting off by mimicing an application you've created with another widget toolkit from before or if you've never done one before, try to mimic an existing application that you currently use. [1] - http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/HintsAndTips Regards, Rem |
From: Andrew C. <an...@op...> - 2006-11-28 00:07:39
|
On Mon, 2006-11-27 at 13:04 +0000, Mark Howard wrote: > I've not tried, but I'd expect that this is integrated with the glib > main loop, so you only get notifications when one of your threads is > running Gtk.main(). Incidentally, one of the things I've been leaning towards adding in 4.0 is a Glib.init(). There isn't such a thing in as g_init() of course (although one DOES have to call g_type_init() if using gobject et al and even though gtk_init() does that for you I'm doing it explicitly much earlier in the execution path) but for the case where you're not actually using GTK it is a but strange to have to fire it up in your code. And the main loop is a GLib construct, after all. So maybe we'll expose a GLib.main() but block its use if Gtk.init() / Gtk.main() have been used. The other possibility is to do it on library load automatically. Still fiddling. I'll write an email to -hackers when something concrete precipitates out. AfC Singapore --=20 Andrew Frederick Cowie Technology strategy, managing change, establishing procedures, and executing successful upgrades to mission critical business infrastructure. That, and hackin' in java-gnome! Need something done, call us! http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Andrew C. <an...@op...> - 2006-11-28 00:05:13
|
On Mon, 2006-11-27 at 15:29 +0100, Jean-Christian de Rivaz wrote: > I did not understand why the GCJ library still make the JNI stuff=20 > required. I tried linking the java-gnome jni.so libraries into my executable once, but I couldn't get it to work. If I had to guess, it's because System.loadLibrary() seems to require that there be a separate library be findable by dlopen() at runtime by name. You'd think, though, that libgcj would have hacked theirs up so that it could find its symbols linked in to the final binary. Maybe someone smarter than me can point out how to do it right. Interestingly, although the library as a whole gets loaded, Sun's JVM does the symbol lookups on a class by class basis. Try java -verbose:jni MyProgram sometime. And try doing ldd ./myprogram on a java-gnome binary built with GCJ. It's quite the monster list, so somehow removing the JNI .so's wouldn't really change much. > This could be an Ubuntu Edgy specific issue.=20 Be aware that Ubuntu is out of date: https://launchpad.net/distros/ubuntu/+source/glib-java/+bug/70113/ so Ubuntu users need to show some of that Ubuntu magic that Ubuntu lovers are always going on about and get some new java-gnome packages made up! AfC Singapore --=20 Andrew Frederick Cowie Technology strategy, managing change, establishing procedures, and executing successful upgrades to mission critical business infrastructure. http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Chris L. <goo...@ya...> - 2006-11-27 21:22:46
|
I want to create a program using Java Gnome. It needs to get all of the lin= ks to other pages in a html document. Which libarie(s) and classes would he= lp me?=0A=0A |
From: Chris L. <goo...@ya...> - 2006-11-27 21:21:04
|
Hello, my name is Chris. I am a CS student learning programming that finish= ed the Data Stuctures class last using the Java language. I use Linux often= and as my main OS. I found the Java Gnome project through Google, and now = I want to get started. What should I read first? Should I read about gtk pr= ogramming first? I thought it was used with the C language, so I will not u= nderstand it much. I have Eclipse IDE and Glade, and I watched the flash vi= deo. How do I get started? Thanks.=0A=0A |
From: Andrew O. <ove...@re...> - 2006-11-27 15:19:14
|
Hi, On Mon, 2006-27-11 at 15:29 +0100, Jean-Christian de Rivaz wrote: >=20 > gcj --classpath=3D/usr/share/java/gtk2-10.jar:/usr/share/java/glib0.4=20 > /usr/lib/gcj/gtk2.10.jar.so /usr/lib/gcj/glib0.4.jar.so=20 > --main=3Dch.eclis.ch.test.Simple -o Simple src/ch/eclis/test/Simple.java >=20 > [...] >=20 > I did not understand why the GCJ library still make the JNI stuff=20 > required. I that normal or I still make someting wrong ? I'm sorry, I really don't know about that one. I don't think one can get rid of the JNI library requirements without actually linking in all of them as well. I still don't understand how your gcj invocation above is working. Don't you need -findirect-dispatch if you're using the .jar.so files? > libglade-java-gcj package that install a classmap *.db file but no=20 > library *.jar.so file at all. This sound very strange to me because the=20 > classmap point to a /usr/lib/gcj/glade2.12.jar.so file that is not=20 > included into the libglade-java-gcj package. Yeah, that sounds fishy to me. Andrew |
From: Jean-Christian de R. <jc...@ec...> - 2006-11-27 14:28:20
|
Thanks for you response, I did't know about the ABI species. I finally get my stuff working, but the result raised two new questions: 1) I did not success removing completely the JNI stuff. For exemple I=20 can compile fine with the following command an application that only use=20 GTK: gcj --classpath=3D/usr/share/java/gtk2-10.jar:/usr/share/java/glib0.4=20 /usr/lib/gcj/gtk2.10.jar.so /usr/lib/gcj/glib0.4.jar.so=20 --main=3Dch.eclis.ch.test.Simple -o Simple src/ch/eclis/test/Simple.java But it run fine only if I use the command: LD_LIBRARY_PATH+=3D/usr/lib/jni ./Simple Without the LD_LIBRARY_PATH I get this message: Exception in thread "main" java.lang.UnsatisfiedLinkError:=20 libgtkjni-2.10: libglibjni-0.4.so cannot open shared object file: No=20 such file or directory I did not understand why the GCJ library still make the JNI stuff=20 required. I that normal or I still make someting wrong ? 2) If I understand correctly the packages that provids a GCJ library=20 have to install at least 2 files: a classmap *.db file (under=20 /usr/share/gcj/classmap.d/ on the Ubuntu Edgy) and a library *.jar.so=20 file (under /uar/lib/gcj/ on the Ubuntu Edgy). This is at least what I=20 can see in all packages I have, with the exception of the=20 libglade-java-gcj package that install a classmap *.db file but no=20 library *.jar.so file at all. This sound very strange to me because the=20 classmap point to a /usr/lib/gcj/glade2.12.jar.so file that is not=20 included into the libglade-java-gcj package. This can be a Ubuntu Edgy specific issue. But I want to know if there is=20 something special I did't understand or if this is a real issue. Thanks, -- Jean-Christian Andrew Overholt a =E9crit : > On Fri, 2006-24-11 at 16:29 +0100, Jean-Christian de Rivaz wrote: >=20 >>jcdr@citron:~/workspace/Simple$ LANG=3DUS gcj-4.1 >>--classpath=3D/usr/share/java/gtk2.10.jar:/usr/share/java/glib0.4.jar:/= usr/share/java/glade2.12.jar -L /usr/lib/jni -lglibjni-0.4 -lgtkjni-2.10 = -lgladejni-2.12 /usr/lib/gcj/gtk2.10.jar.so src/ch/eclis/test/Simple.java >=20 >=20 > You're mixing the old C++ ABI and the new BC-ABI. The .jar.so file is > a BC-ABI .so. You'll need to add -findirect-dispatch to your > compilation line to make that work. However, you should probably read > about the BC-ABI and gcj-dbtool. I don't have any pointers OTTOMH, but > google should probably find some stuff. >=20 > HTH, >=20 > Andrew --=20 Jean-Christian de Rivaz |
From: Pierre-Charles D. <pc...@gm...> - 2006-11-27 13:28:30
|
2006/11/27, Mark Howard <mh...@ti...>: > I've not tried, but I'd expect that this is integrated with the glib > main loop, so you only get notifications when one of your threads is > running gtk.main(). Yep, that was it. Wrapping the code with Gtk.init() / Gtk.main() makes it work as expected. Thanks a lot, I wouldn't have thought of that! |
From: Andrew C. <an...@op...> - 2006-11-27 13:18:49
|
On Mon, 2006-11-27 at 11:23 +0100, Pierre-Charles David wrote: > so I may be missing something obvious. Probably not. That code was written several years ago by {Jeff?} and I don't think anyone has touched it since. I'm glad to hear that at least getting works. Did you try looking at the example code in libgconf-java/doc/examples ? If you figure it out and want to contribute a patch, or need to talk about the internal details of the present 2.x code, then by all means come up on java-gnome-hackers or #java-gnome Good luck! AfC Bangalore --=20 Andrew Frederick Cowie Technology strategy, managing change, establishing procedures, and executing successful upgrades to mission critical business infrastructure. http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Mark H. <mh...@ti...> - 2006-11-27 13:11:20
|
I've not tried, but I'd expect that this is integrated with the glib main loop, so you only get notifications when one of your threads is running gtk.main(). On 11/27/06, Pierre-Charles David <pc...@gm...> wrote: > Hi all, > > I'm trying to use the gconf bindings (libgconf-java-2.12.5) from Java. > It works well when requesting values, but I can't seem to get > notifications of changes. I'm new both to java-gnome and gconf itself, > so I may be missing something obvious. > > Below is the code I am running. While it is waiting on the last line, > I run gconf-editor and manually change the (boolean) value of the key > "/apps/baobab/properties/enable_home_monitor"; I was expecting my > listener to be called, but it is not. Am I doing something wrong / > misunderstanding gconf, or is this feature not supported yet? > > Thanks in advance. > > public static void main(String[] args) throws Exception { > ConfClient cc = ConfClient.getInstance(); > cc.addDirectory("/apps/baobab/properties", > ConfClientPreloadType.RECURSIVE); > System.out.println(cc.get("/apps/baobab/properties/enable_home_monitor")); > cc.addListener(new ConfClientListener() { > public void clientNotify(ConfEntry entry) { > System.out.println(entry.getKey() + " = " + entry.getValue()); > } > }, "/apps/baobab/properties"); > new BufferedReader(new InputStreamReader(System.in)).readLine(); > } > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |
From: Pierre-Charles D. <pc...@gm...> - 2006-11-27 10:23:11
|
Hi all, I'm trying to use the gconf bindings (libgconf-java-2.12.5) from Java. It works well when requesting values, but I can't seem to get notifications of changes. I'm new both to java-gnome and gconf itself, so I may be missing something obvious. Below is the code I am running. While it is waiting on the last line, I run gconf-editor and manually change the (boolean) value of the key "/apps/baobab/properties/enable_home_monitor"; I was expecting my listener to be called, but it is not. Am I doing something wrong / misunderstanding gconf, or is this feature not supported yet? Thanks in advance. public static void main(String[] args) throws Exception { ConfClient cc = ConfClient.getInstance(); cc.addDirectory("/apps/baobab/properties", ConfClientPreloadType.RECURSIVE); System.out.println(cc.get("/apps/baobab/properties/enable_home_monitor")); cc.addListener(new ConfClientListener() { public void clientNotify(ConfEntry entry) { System.out.println(entry.getKey() + " = " + entry.getValue()); } }, "/apps/baobab/properties"); new BufferedReader(new InputStreamReader(System.in)).readLine(); } |
From: Marco A. P. S. <map...@gm...> - 2006-11-26 14:59:58
|
Hi, I'm just starting with Java-Gnome and GTK, and I have some questions about ComboBoxEntry. I'm developing an application in wich I would do the following: 1) clear the text in the Entry associated with the ComboBoxEntry when the user clicks a button 2) prevent the user from directly edit the Entry associated with that ComboBox (setting that Entry "editable" property to false) In order to do number 1 above, I've tried to do the following: Entry entry= (Entry) (combo_box_entry.getChild()); entry.setText(""); which yelds a ClassCastException in the first line. Am I doing something wrong? I've read somewhere that ComboBox is a Bin, and thus it's child Entry is available through getChild()...is this right? Any help is appreciated. Thanks in advance! -- Marco Antonio Porcho Souza |
From: Andrew O. <ove...@re...> - 2006-11-24 16:09:06
|
On Fri, 2006-24-11 at 16:29 +0100, Jean-Christian de Rivaz wrote: > jcdr@citron:~/workspace/Simple$ LANG=3DUS gcj-4.1 > --classpath=3D/usr/share/java/gtk2.10.jar:/usr/share/java/glib0.4.jar:/us= r/share/java/glade2.12.jar -L /usr/lib/jni -lglibjni-0.4 -lgtkjni-2.10 -lgl= adejni-2.12 /usr/lib/gcj/gtk2.10.jar.so src/ch/eclis/test/Simple.java You're mixing the old C++ ABI and the new BC-ABI. The .jar.so file is a BC-ABI .so. You'll need to add -findirect-dispatch to your compilation line to make that work. However, you should probably read about the BC-ABI and gcj-dbtool. I don't have any pointers OTTOMH, but google should probably find some stuff. HTH, Andrew |
From: Jean-Christian de R. <jc...@ec...> - 2006-11-24 14:28:50
|
Hello, I begin to learn gnome-java by the traditional Hello World like the one found into the documentation. The small code is in attachement and I can run it fine with the following command on a fresh install of Ubuntu edgy: jcdr@citron:~/workspace/Simple$ LD_PRELOAD=/usr/lib/jni/libglibjni-0.4.so java -cp bin/:/usr/share/java/gtk2.10.jar:/usr/share/java/glib0.4.jar:/usr/share/java/glade2.12.jar ch.eclis.test.Simple Now I try to compile the application to get a native ELF executable but after several test, I still can't reach this goal. The most advanced result I have is with the following command: jcdr@citron:~/workspace/Simple$ LANG=US gcj-4.1 --classpath=/usr/share/java/gtk2.10.jar:/usr/share/java/glib0.4.jar:/usr/share/java/glade2.12.jar -L /usr/lib/jni -lglibjni-0.4 -lgtkjni-2.10 -lgladejni-2.12 /usr/lib/gcj/gtk2.10.jar.so src/ch/eclis/test/Simple.java /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' /tmp/ccxGaPRd.o: In function `ch::eclis::test::Simple::Simple()': Simple.java:(.text+0x8b): undefined reference to `org::gnu::glade::LibGlade::class$' Simple.java:(.text+0xaa): undefined reference to `org::gnu::glade::LibGlade::LibGlade(java::lang::String*, java::lang::Object*)' Simple.java:(.text+0xd6): undefined reference to `org::gnu::gtk::Entry::class$' /tmp/ccxGaPRd.o:(.data+0x34): undefined reference to `org::gnu::gtk::Entry::class$' collect2: ld returned 1 exit status Using -fjni option give the same result. I have found the symbol _ZN3org3gnu3gtk5Entry7class$$E in the /usr/lib/gcj/gtk2.10.jar.so, are the one supposed to match the org::gnu::gtk::Entry::class$ ? As for the glade symbols, I didn't find a glade*.jar.so or something like this. >From what package it is supposed to come with ? Thanks in advance to any help, |
From: Andrew C. <an...@op...> - 2006-11-21 16:13:04
|
Pleased to announce the java-gnome series of libraries has reached version 2.16.1, with individual versions as follows: glib-java 0.4.1 * cairo-java 1.0.6 libgtk-java 2.10.1 * libgnome-java 2.12.6 libglade-java 2.12.7 libgconf-java 2.12.5 and libvte-java 0.12.2 With the * marking libraries that have changed in this release. Mostly this is all just patches for various glitches, but both upgrades are critical for anyone using GTK from Java. These correspond with the "GNOME 2.16.2" release drop. As always, tarballs are available at ftp.gnome.org AfC Bangalore --=20 Andrew Frederick Cowie Technology strategy, managing change, establishing procedures, and executing successful upgrades to mission critical business infrastructure. http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Remy S. <rem...@gm...> - 2006-11-20 02:21:40
|
Hi Marc, Note that I haven't programmed in Swing in a long time, so I may be out of context here. > what is the recommended way of > dealing with calling the same form multiple times. You have to handle the LifeCycleEvent of the Window. I believe you capture the DELETE and DESTROY events and then return false? Or maybe it's true? Well, either one of them should prevent your gtk window from being disposed. I think later you have to call showAll() or maybe setVisible(true) to bring it up? Sorry, I haven't really programmed in JG for a while. :/ > Also, how do you stop > them all from appearing when I load the glade file. There should a 'visible' property in the 'properties' dialog for you to tweak this if I recall correctly. I have not used Glade in over a year and a half or so, but it's somewhere in there. So if you set it to false it's not going to appear upon application startup. Regards, Rem |
From: Marc R. <ma...@sh...> - 2006-11-18 23:54:42
|
Hi, I am new java gnome; it looks very interesting and I've decided to try it out. One of my questions is how do you create an instance of a Form. I designed it all in glade of course, but as soon as I run the program and load the glade file, _all_ of the forms I designed become visible (??) without me activating them in any way. If I close the forms, I can no longer show them by doing "form.show()" because the form has been disposed. In swing, you do something like JFrame frame = new MyForm1(); frame.setVisible(true); .... frame.dispose(); and later on again, I can do that same code without any problems. Is there a similar mechanism using glade, or what is the recommended way of dealing with calling the same form multiple times. Also, how do you stop them all from appearing when I load the glade file. Thanks for your time, Marc |
From: Marek P. <mc...@o2...> - 2006-11-06 13:15:25
|
Hello. Could you help me with my problem? I have a cairo drawn custom widget based on gtk.DrawingArea and it hangs my app on closing if i don't execute withdraw() on its gdk.Window. What is the best way to do some custom things with widget on closing? Send message to it by java.util.Observer? Or is there a better way? Thanks. Marek --=20 Please encrypt every mail you can. Privacy is your right. Don't let anyone take it from you. Look at GnuPG or PGP and ask for my key. |