java-gnome-developer Mailing List for The java-gnome language bindings project (Page 62)
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: Skip C. <sco...@gm...> - 2004-11-01 04:48:00
|
Hey there, Thank you for your time. This got me through my autogen.sh blues: WANT_AUTOMAKE=1.7 WANT_AUTOCONF_2_5=1 ./autogen.sh I am now making away (with fingers crossed). scoon On Sun, 31 Oct 2004 17:41:08 -0800, Andrew Cowie <an...@op...> wrote: > On Sun, 2004-31-10 at 20:13 -0500, Skip Coon wrote: > > -- Running ./autogen.sh in libgtk-java > ... > > ./configure: line 2420: syntax error: unexpected end of file > > > > 1) upgrade to 2.8.x, yo! > > 2) This may be the PKG_CONFIG_PATH problem. It can't find the autoconf > macros it needs, but doesn't fail gracefully. [Can we fix that, guys?] > > See the attached email (sent to this list like last week) for the > solution to that problem; hope it helps you. > > AfC > Vancouver > > P.S. We really need to get these mailing lists out of sourceforge and > into gnome or somewhere with a proper mailing list archive > > -- > Andrew Frederick Cowie > > OPERATIONAL DYNAMICS > Operations Consultants and Infrastructure Engineers > > Australia: +61 2 9977 6866 North America: +1 646 472 5054 > > http://www.operationaldynamics.com/ > > > > ---------- Forwarded message ---------- > From: Andrew Cowie <an...@op...> > To: java-gnome-developer <jav...@li...> > Date: Mon, 25 Oct 2004 14:20:53 -0400 > Subject: Re: [Java-gnome-developer] configure problem with CVS version. > On Mon, 2004-10-25 at 16:40 +0200, Nicholas Rahn wrote: > > ./configure: line 2420: syntax error: unexpected end of file > > I ran into this yesterday. > > For some time now, I've had to build java-gnome WITHIN a jhbuild > environment, that is: > > $ cd ~/cvs/gnome2/java-gnome/libgtk-java > $ jhbuild shell > % ./autogen --prefix=/opt/gnome2 > > And then it works. I had forgotten this, and yesterday was getting the > problem you quote. I think my specific problem is that because I had a > different prefix, I had to set PKG_CONFIG_PATH set to include the > alternate prefix's .pc files. ie, > > export PKG_CONFIG_PATH=/opt/gnome2/lib/pkgconfig:/usr/lib/pkgconfig > > and THEN autogen worked. > > [Notably, one of the other results of all this is that I have to run > eclipse as > > $ jhbuild run /opt/eclipse/eclipse > > or, rather, as > > LD_LIBRARY_PATH=/opt/gnome2/lib /opt/eclipse/eclipse > > which is really annoying; but one thing which makes me happy is that I > figured out the linker syntax > > -Wl,--rpath=/opt/gnome2/lib > > So when I'm generating binaries with gcj there are no enviornment > variable issues at all. > > To be honest, this is all a horrid kludge. In part its borne of the fact > that I have at present a gnome 2.6 installation and haven't gotten > around to upgrading to gnome 2.8, and needed the gnome 2.8 libraries to > build java-gnome.] > > AfC > Toronto > > -- > Andrew Frederick Cowie > > OPERATIONAL DYNAMICS > Operations Consultants and Infrastructure Engineers > > http://www.operationaldynamics.com/ > > > > |
From: Andrew C. <an...@op...> - 2004-11-01 01:41:15
|
On Sun, 2004-31-10 at 20:13 -0500, Skip Coon wrote: > -- Running ./autogen.sh in libgtk-java ... > ./configure: line 2420: syntax error: unexpected end of file > 1) upgrade to 2.8.x, yo! 2) This may be the PKG_CONFIG_PATH problem. It can't find the autoconf macros it needs, but doesn't fail gracefully. [Can we fix that, guys?] See the attached email (sent to this list like last week) for the solution to that problem; hope it helps you. AfC Vancouver P.S. We really need to get these mailing lists out of sourceforge and into gnome or somewhere with a proper mailing list archive -- Andrew Frederick Cowie OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers Australia: +61 2 9977 6866 North America: +1 646 472 5054 http://www.operationaldynamics.com/ |
From: Skip C. <sco...@gm...> - 2004-11-01 01:13:54
|
Hey there, Thanks for the response. I also run gentoo and have tried the cvs and I get this error: -- Running ./autogen.sh in libgtk-java loading cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for executable suffix... no checking how to run the C preprocessor... cc -E checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c checking for db2html... nocommand checking for docbook2html... /usr/bin/docbook2html checking if /opt/sun-jdk-1.5.0/bin/javac works... yes checking if /opt/sun-jdk-1.5.0/bin/javac works... (cached) yes checking for javadoc... javadoc checking for jar... jar ./configure: line 2420: syntax error: unexpected end of file I have the 2.6.0.1 ebuild installed and working, but am trying to figure this one out. scoon On Sun, 31 Oct 2004 22:11:34 +0100 (CET), ni...@mn... <ni...@mn...> wrote: > I had this same problem (unsatisfiedlinkerror: html_view_new) on my gentoo > box. I never found a fix for it. Some other gentoo users on the list > said it worked for them, however. Since then i have upgraded to use the > CVS version which does not seem to have this problem. > > As for showing an HTML string in an HTML page, for the moment you will > have to save it to a file, then load it into an HTMLDocument object using > the loadFile method. I am working on some improvements to the gtkhtml > library and could add a method to load a page from a String. However, > from what i understand of the release schedual, the current CVS is api > stable so any changes such as this would be added after a stable release > in the next couple of weeks. > > Hope this helps, > nick > > > > > Hey All, > > > > I have captured a string that is nothing more than HTML. What > > object(s) can I use to present that string as a web page ? > > > > > > This code: > > ScrolledWindow swr = (ScrolledWindow) > > this.getWidget("scrolledwindowRight"); > > HTMLView htmlview = new HTMLView(); > > swr.add(htmlview); > > > > > > Gives me this error: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: html_view_new > > at org.gnu.gtkhtml.HTMLView.html_view_new(Native Method) > > at org.gnu.gtkhtml.HTMLView.<init>(HTMLView.java:17) > > at gentoo.GUI.showFeeds(GUI.java:57) > > at gentoo.GUI.<init>(GUI.java:44) > > at gentoo.Main.main(Main.java:28) > > > > The getWidget() is just a shortcut for getting widgets out of glade: > > public Widget getWidget(String widgetName) { > > return libglade.getWidget(widgetName); > > } > > > > Any suggestions. > > > > Thanks in advance. > > > > > > scoon > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Sybase ASE Linux Express Edition - download now for FREE > > LinuxWorld Reader's Choice Award Winner for best database on Linux. > > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > > _______________________________________________ > > java-gnome-developer mailing list > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > |
From: <ni...@mn...> - 2004-10-31 21:11:46
|
I had this same problem (unsatisfiedlinkerror: html_view_new) on my gentoo box. I never found a fix for it. Some other gentoo users on the list said it worked for them, however. Since then i have upgraded to use the CVS version which does not seem to have this problem. As for showing an HTML string in an HTML page, for the moment you will have to save it to a file, then load it into an HTMLDocument object using the loadFile method. I am working on some improvements to the gtkhtml library and could add a method to load a page from a String. However, from what i understand of the release schedual, the current CVS is api stable so any changes such as this would be added after a stable release in the next couple of weeks. Hope this helps, nick > Hey All, > > I have captured a string that is nothing more than HTML. What > object(s) can I use to present that string as a web page ? > > > This code: > ScrolledWindow swr = (ScrolledWindow) > this.getWidget("scrolledwindowRight"); > HTMLView htmlview = new HTMLView(); > swr.add(htmlview); > > > Gives me this error: > Exception in thread "main" java.lang.UnsatisfiedLinkError: html_view_new > at org.gnu.gtkhtml.HTMLView.html_view_new(Native Method) > at org.gnu.gtkhtml.HTMLView.<init>(HTMLView.java:17) > at gentoo.GUI.showFeeds(GUI.java:57) > at gentoo.GUI.<init>(GUI.java:44) > at gentoo.Main.main(Main.java:28) > > The getWidget() is just a shortcut for getting widgets out of glade: > public Widget getWidget(String widgetName) { > return libglade.getWidget(widgetName); > } > > Any suggestions. > > Thanks in advance. > > > scoon > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |
From: Skip C. <sco...@gm...> - 2004-10-31 14:21:10
|
Hey All, I have captured a string that is nothing more than HTML. What object(s) can I use to present that string as a web page ? This code: ScrolledWindow swr = (ScrolledWindow) this.getWidget("scrolledwindowRight"); HTMLView htmlview = new HTMLView(); swr.add(htmlview); Gives me this error: Exception in thread "main" java.lang.UnsatisfiedLinkError: html_view_new at org.gnu.gtkhtml.HTMLView.html_view_new(Native Method) at org.gnu.gtkhtml.HTMLView.<init>(HTMLView.java:17) at gentoo.GUI.showFeeds(GUI.java:57) at gentoo.GUI.<init>(GUI.java:44) at gentoo.Main.main(Main.java:28) The getWidget() is just a shortcut for getting widgets out of glade: public Widget getWidget(String widgetName) { return libglade.getWidget(widgetName); } Any suggestions. Thanks in advance. scoon |
From: Hans D. <ha...@de...> - 2004-10-30 19:26:47
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Greetings. Newbie here. In my first attempt to run a basic Java-Gnome program (Example1.java slightly modified), I get the following: - ---> (java-gnome:8032): GLib-GObject-CRITICAL **: file gobject.c: line 1222 (g_object_get): assertion `G_IS_OBJECT (object)' failed (java-gnome:8032): GLib-GObject-CRITICAL **: file gobject.c: line 1222 (g_object_get): assertion `G_IS_OBJECT (object)' failed An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x173711 Function=__libc_free+0x61 Library=/lib/tls/libc.so.6 Current Java thread: at org.gnu.glade.LibGlade.glade_xml_new_from_buffer(Native Method) at org.gnu.glade.LibGlade.<init>(LibGlade.java:117) at org.gnu.glade.LibGlade.<init>(LibGlade.java:88) at org.gnu.glade.LibGlade.<init>(LibGlade.java:60) at marketmanager.gui.MarketManagerGui.<init>(MarketManagerGui.java:17) at marketmanager.gui.MarketManagerGui.main(MarketManagerGui.java:38) <---- I am running Fedora Core 2 with latest patches, java-gnome-2.6.0.1 and j2sdk1.4.2_05. Anybody have suggestions on how to get pass this hurdle? Best regards, Hans Deragon - -- Consultant en informatique/Software Consultant Deragon Informatique inc. Open source: http://www.deragon.biz http://facil.qc.ca (Promotion du libre) mailto://ha...@de... http://autopoweroff.deragon.biz (Logiciel) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD4DBQFBg+phkn1Tn1exbkgRAj3zAJwNp6T8LYHr3RAgxsmYFx7XbGCq/wCY28yL LBj+LaPRN/lpnaVZI1nDDQ== =P131 -----END PGP SIGNATURE----- |
From: Sean C. <exc...@gm...> - 2004-10-30 18:03:30
|
On a clean ubuntu install with all the appropiate packages i had to configure like this ./configure CFLAGS=-I/usr/lib/gcc/i486-linux/3.4.2/include/ and do this before a make export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/ to get java-gnome up and running. was there an easier way? or is this worth up on the wiki? Sean |
From: Robert M. <ro...@ma...> - 2004-10-30 17:25:00
|
On Sat, 2004-10-30 at 13:06, Jerry Haltom wrote: > It does. The "problem" as I see it though is Java does not allow you to > store pointers natively: period. It's stored as an 'int' now, which is > guarenteed signed 32 bit on ALL PLATFORMS. There is discussion on > changing it to a long, which is signed 64 bit ON ALL PLATFORMS. There is > no "native pointer". It would be nice though! THere is talk on putting > it in a long I think, or a class. I think they both suck though. With a > long you can't fit it all in a register, with a class you have to > derefrence (vtable lookup). > Another solution can be define both fields (int and long) and let the native code decide which one to use. But will the performance increase enough to allow the extra memory usage? ________________________________________ Robert Marcano |
From: Jerry H. <wa...@la...> - 2004-10-30 17:06:59
|
It does. The "problem" as I see it though is Java does not allow you to store pointers natively: period. It's stored as an 'int' now, which is guarenteed signed 32 bit on ALL PLATFORMS. There is discussion on changing it to a long, which is signed 64 bit ON ALL PLATFORMS. There is no "native pointer". It would be nice though! THere is talk on putting it in a long I think, or a class. I think they both suck though. With a long you can't fit it all in a register, with a class you have to derefrence (vtable lookup). |
From: Laurent M. <la...@ao...> - 2004-10-30 15:33:59
|
>>>>> "'Mark" == 'Mark Howard' <mh...@ti...> writes: Mark> On Sat, Oct 30, 2004 at 02:23:34PM +0200, Laurent Martelli Mark> wrote: Mark> - Java objects are GCd when they go out of scope, unless Mark> events have been registered. Therefore, c objects can exist Mark> without corresponding java objects. >> I believe this not a problem, and anyway there's probably >> nothing that can be done against it since some gtk objects may >> create ither gtk objects on their own. It's all right as long >> they destroy them when they are destroyed themselves. Mark> I agree in this patricular case. But what about when we Mark> create a window, hide it and then the java object goes out of Mark> scope. The c objects are still three and we have no way of Mark> accessing them. This is a memory leak. Unless we unref in finalize(). >> By the way, when we want to get a reference on such an object >> from java, we seem to always get an instance of >> org.gnu.gtk.Widget. It would be nice to get the actual instance >> so that more useful things can be done with the widget. I'll fill >> a bug report against that. Mark> I thought there already was a bug about this. Is it http://bugzilla.gnome.org/show_bug.cgi?id=155075 ? It's not only a glade problem. Bin.getChild() is also affected. Mark> Not sure. I agree, libglade.getWidget should do an appropriate Mark> cast. I'm not sure how simple that would be though. >> What about the finalize method which is called when a java object >> is garbage collected ? I think should call g_object_ref() when a >> java object is created so that we are pretty the C object won't >> be destroyed as long as the java object exists, and >> g_object_unref() in finalize(). This way, a C object would >> destroyed when no java objects references it and it's not >> referenced by a any C object either. Mark> When we add event handlers, we create references from the c Mark> object to the java object. I think we would almost always get Mark> the unfortunate case where the c object and java object Mark> reference each other, but nothing else references Mark> them. i.e. a memory leak I had not thought of that. But the GC is supposed to also work in the case of circular references. Unless the the reference create in C is a root object for the GC. But it would seem normal that the programmer must unregister from events when a widget is not used anymore and is meant to be garbaged. Mark> WeakReferences might seem the obvious answer, That's what I was about to say :-) Mark> but it isn't :-( Mark> -- in this case we would always have to keep references to any Mark> java objects which we have defined events in. I must admit I don't see the point. To me, weak refs are really a solution. I guess I do not see the whole picture. Mark> What we really need is a weak reference which looks at both Mark> java references and g_object_refs. It might be possible for us Mark> to create this. >> This only problem would be if a C object is manually destroyed >> while there are still references on it (ref_count>0). Mark> This shouldn't happen. If gtk does not do this, then we can assume it can't happen if we remove destroy() from the java API. -- Laurent Martelli la...@ao... Java Aspect Components http://www.aopsys.com/ http://jac.objectweb.org |
From: Robert M. <ro...@ma...> - 2004-10-30 15:16:59
|
On Sat, 2004-10-30 at 11:01, Jerry Haltom wrote: > You're right. What I meant was that we have NO way to manage memory in > Java. It happens behind the scenes, on a GC process. So, we need to > either tie into this process, which I don't think we can, or have our > own "cleanup" process to delete C instances when the Java instance dies. > This is the ref count idea. We scan our map, find items with a dead Java > instance, and unref them, and remove them from the map. We are no longer > using them. There is a way to get information about the reachability of a Java object, Someone knows about the status of this classes on GNU Classpath? http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ref/ReferenceQueue.html > > Our Java wrapper instances will stay alive as long as there is a > reference to them. After they loose all references, they will die at > some undetermined time in the future. If the object is being used in a > signal handler, it will not be GC'd. > > You're C++ way of storing it in the data of the GObject is good... > however, we need a way to map Java->Object to GObject as well. Java also > conveniently lacks an efficient way to do this. ________________________________________ Robert Marcano |
From: Jerry H. <wa...@la...> - 2004-10-30 15:01:43
|
You're right. What I meant was that we have NO way to manage memory in Java. It happens behind the scenes, on a GC process. So, we need to either tie into this process, which I don't think we can, or have our own "cleanup" process to delete C instances when the Java instance dies. This is the ref count idea. We scan our map, find items with a dead Java instance, and unref them, and remove them from the map. We are no longer using them. Our Java wrapper instances will stay alive as long as there is a reference to them. After they loose all references, they will die at some undetermined time in the future. If the object is being used in a signal handler, it will not be GC'd. You're C++ way of storing it in the data of the GObject is good... however, we need a way to map Java->Object to GObject as well. Java also conveniently lacks an efficient way to do this. |
From: 'Mark H. <mh...@ti...> - 2004-10-30 15:00:36
|
On Sat, Oct 30, 2004 at 02:23:34PM +0200, Laurent Martelli wrote: > Mark> - Java objects are GCd when they go out of scope, unless > Mark> events have been registered. Therefore, c objects can exist > Mark> without corresponding java objects. > > I believe this not a problem, and anyway there's probably nothing that > can be done against it since some gtk objects may create ither gtk > objects on their own. It's all right as long they destroy them when > they are destroyed themselves. I agree in this patricular case. But what about when we create a window, hide it and then the java object goes out of scope. The c objects are still three and we have no way of accessing them. This is a memory leak. > By the way, when we want to get a reference on such an object from > java, we seem to always get an instance of org.gnu.gtk.Widget. It > would be nice to get the actual instance so that more useful things > can be done with the widget. I'll fill a bug report against that. I thought there already was a bug about this. Not sure. I agree, libglade.getWidget should do an appropriate cast. I'm not sure how simple that would be though. > What about the finalize method which is called when a java object is > garbage collected ? I think should call g_object_ref() when a java > object is created so that we are pretty the C object won't be > destroyed as long as the java object exists, and g_object_unref() in > finalize(). This way, a C object would destroyed when no java objects > references it and it's not referenced by a any C object either. When we add event handlers, we create references from the c object to the java object. I think we would almost always get the unfortunate case where the c object and java object reference each other, but nothing else references them. i.e. a memory leak WeakReferences might seem the obvious answer, but it isn't -- in this case we would always have to keep references to any java objects which we have defined events in. What we really need is a weak reference which looks at both java references and g_object_refs. It might be possible for us to create this. > This only problem would be if a C object is manually destroyed while > there are still references on it (ref_count>0). This shouldn't happen. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Jerry H. <wa...@la...> - 2004-10-30 14:35:16
|
I've been pondering how the mapping system could change dramatically. My idea involves storing the mapping in C. Keep a Java Object -> GObject hash structure of some kind. We would keep a ref on the GObjects. If there is a way to participate in the GC call, we could scan the map for ref count 1's, and unref them. If not, we'd need our own GC process. |
From: Laurent M. <la...@ao...> - 2004-10-30 11:35:57
|
>>>>> "Mark" == Mark Howard <mh...@ti...> writes: Mark> On Fri, Oct 29, 2004 at 05:40:31PM +0200, Laurent Martelli Mark> wrote: >> Is there a way to prevent a ComboBox from expanding vertically ? >> (Other than putting it in a VBox with expand = false). Mark> What container do you have it in already? The packStart Mark> parameters of the container it's already in will probably work Mark> for this. It's in an HBox: hbox.packStart(combo,true,true,0); I want it to expand horizontally but not vertically. With this, if there's a component with a bigger height in the same HBox, the combo will expand vertically. I used the VBox trick that I mentioned earlier, so if nobody has cleaner solution, never mind. -- Laurent Martelli la...@ao... Java Aspect Components http://www.aopsys.com/ http://jac.objectweb.org |
From: Mark H. <mh...@ti...> - 2004-10-30 10:54:29
|
On Fri, Oct 29, 2004 at 05:40:31PM +0200, Laurent Martelli wrote: > Is there a way to prevent a ComboBox from expanding vertically ? (Other > than putting it in a VBox with expand = false). What container do you have it in already? The packStart parameters of the container it's already in will probably work for this. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Jerry H. <wa...@la...> - 2004-10-30 01:58:40
|
No patent ambiguity? Yes there is. Many core features of all VM's are patented. In fact, Sun just got sued for one such patent. No software is safe from patents, period. Mono is just as safe as Java. What makes Java better is the larger number of libraries and APIs currently available. ;) |
From: Andrew C. <an...@op...> - 2004-10-29 22:10:55
|
On Fri, 2004-29-10 at 15:32 -0500, Jerry Haltom wrote: > In SWT, one creates a Runnable, and uses the Display object to add it to > the main loop. When the main loop next cycles, it runs it. >=20 > Good for multi-threading. You can have a thread in the background which > passes events to the Gtk main loop. It seems that one does this: CustomEvents.addEvent(new Runnable() { public void run() { // code to update the GUI goes here. // eg, I keep a static reference to the // instance to make it easy to call things. MyProgram.ui.someUpdateMethod(args); } }); Instruction from Mark Burgess was that it is *absolutely necessary* to do GUI updates from within the Gtk main loop; these "CustomEvents" are called by java-gnome's gtk main wrapper. Having tested all this, I can confirm by observation that if you don't do it this way, the main loop will miss updates (because of different threads getting called and switched in various random sequences). I do all this from a worker thread. I have an example of all this posted: tla register-archive http://research.operationaldynamics.com/arch/hacks/ tla get an...@op...--hacks/geode--trunk--0.3 geode cd geode make [java|native] (you'd probably have to fiddle with the exact library paths in the Makefile= ) AfC Toronto --=20 Andrew Frederick Cowie OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers http://www.operationaldynamics.com/ |
From: Andrew C. <an...@op...> - 2004-10-29 22:10:54
|
On Fri, 2004-29-10 at 15:32 -0500, Jerry Haltom wrote: > In SWT, one creates a Runnable, and uses the Display object to add it to > the main loop. When the main loop next cycles, it runs it. >=20 > Good for multi-threading. You can have a thread in the background which > passes events to the Gtk main loop. It seems that one does this: CustomEvents.addEvent(new Runnable() { public void run() { // code to update the GUI goes here. // eg, I keep a static reference to the // instance to make it easy to call things. MyProgram.ui.someUpdateMethod(args); } }); Instruction from Mark Burgess was that it is *absolutely necessary* to do GUI updates from within the Gtk main loop; these "CustomEvents" are called by java-gnome's gtk main wrapper. Having tested all this, I can confirm by observation that if you don't do it this way, the main loop will miss updates (because of different threads getting called and switched in various random sequences). I do all this from a worker thread. I have an example of all this posted: tla register-archive http://research.operationaldynamics.com/arch/hacks/ tla get an...@op...--hacks/geode--trunk--0.3 geode cd geode make [java|native] (you'd probably have to fiddle with the exact library paths in the Makefile= ) AfC Toronto --=20 Andrew Frederick Cowie OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers http://www.operationaldynamics.com/ |
From: Nicholas R. <ni...@mn...> - 2004-10-29 22:06:11
|
try doing a verticalButtonBox.showAll() after the while loop. nick On Fri, 2004-10-29 at 17:25 -0400, Skip Coon wrote: > Hey All, > > I am using glade to build my gui and I am wondering how to dynamically > add buttons to a VButtonBox. This is what I have tried to do so far: > > Iterator iterator = nodes.iterator(); > while(iterator.hasNext()){ > Hashtable hash = (Hashtable)iterator.next(); > verticalButtonBox.add(new Button()); > rightTextBuffer.insertText((String)hash.get("description") +"\n"); > } > > Unfortunately, the new buttons do not get added. Any help would be > greatly appreciated. > > > scoon > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer -- |
From: Nick G. <ar...@ya...> - 2004-10-29 22:03:52
|
First, I'd like to say I love the idea of Java-Gnome and hope it will become very popular... I've not read much about this... You aren't doing a lot of promotion are you? Of course there is no Novell or Red Hat behind the project but I think point releases should be announced on slashdot and/or osnews. I think it's a lot better than Mono because there is no patent ambiguity *and* one can choose not to use a VM by compiling with GCJ, which is lot faster. I've seen you are working on a Windows port for Java-Gnome. What I can remember from using Mono, is that they recommended using only GTK libs, no Gnome libs, since GTK has been ported to Windows and Gnome isn't. This still holds true for Java-Gnome right? However, your introduction tutorial uses the Gnome libs right away (things like 'App app')... There is no GTK-only example. It should be noted I've not set up Java-Gnome correctly yet, so I can't write and test one of my little GTK Mono apps. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Skip C. <sco...@gm...> - 2004-10-29 21:26:06
|
Hey All, I am using glade to build my gui and I am wondering how to dynamically add buttons to a VButtonBox. This is what I have tried to do so far: Iterator iterator = nodes.iterator(); while(iterator.hasNext()){ Hashtable hash = (Hashtable)iterator.next(); verticalButtonBox.add(new Button()); rightTextBuffer.insertText((String)hash.get("description") +"\n"); } Unfortunately, the new buttons do not get added. Any help would be greatly appreciated. scoon |
From: Jerry H. <jh...@fe...> - 2004-10-29 20:33:20
|
Is this possible? In SWT, one creates a Runnable, and uses the Display object to add it to the main loop. When the main loop next cycles, it runs it. Good for multi-threading. You can have a thread in the background which passes events to the Gtk main loop. ????? |
From: Laurent M. <la...@ao...> - 2004-10-29 15:40:45
|
Is there a way to prevent a ComboBox from expanding vertically ? (Other than putting it in a VBox with expand = false). -- Laurent Martelli la...@ao... Java Aspect Components http://www.aopsys.com/ http://jac.objectweb.org |
From: Mark H. <mh...@ti...> - 2004-10-29 13:25:47
|
Could you possibly send a patch and I'll try to look at it this weekend. -- .""`. Mark Howard : :" : `. `" http://www.tildemh.com `- mh...@de... | mh...@ti... |