Thread: [java-gnome-hackers] RE: [Java-gnome-checkins] CVS: java-gnome/gtk/src/java/org/gnu/gt k/event Tree
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2004-02-25 22:43:32
|
No problem. I will try to complete this. I seem to be making good progress with the tree control and have a lot to still checkin. I am making many changes and would appreciate it if you guys could help test these changes. Thanks -Jeff > The rows-reordered signal is the only (as far as I can see) way of > being notified when rows are reordered, which is quite a crucial task > for many applications. It would be a real shame if we could not > implement this for 2.6. Would it be so bad to design the > public api now > and then figure out the native part later? > > On Wed, Feb 25, 2004 at 06:40:36AM -0500, Jeffrey Morgan wrote: > > The problem is that our event native layer doesn't know how > to handle > > an array of ints. I didn't want to make this type of > change this close > > to the beta1 release. > > > > -Jeff > > > > > -----Original Message----- > > > From: Mark Howard [mailto:mh...@ca...] > > > Sent: Tuesday, February 24, 2004 9:07 AM > > > To: Jeffrey S. Morgan > > > Subject: Re: [Java-gnome-checkins] CVS: > > > java-gnome/gtk/src/java/org/gnu/gtk/event > > > TreeModelListener.java,NONE,1.1 TreeModelEvent.java,NONE,1.1 > > > > > > > > > On Tue, Feb 24, 2004 at 04:19:38AM -0800, Jeffrey S. Morgan wrote: > > > > //public static final Type ROWS_REORDERED = new > > > Type(5, "ROWS_REORDERED"); > > > This will need to be a separate event - it needs to give > access to two > > > iters. > > > > > > > > > NOTE: THIS IS A CONFIDENTIAL COMMUNICATION. This > transmission is intended > > only for the use of the individuals or entity to which it > is addressed. If > > you are not the intended recipient, or the person > responsible for delivering > > the message to the intended recipient, please return or delete it > > immediately. Although this e-mail and any attachments are > believed to be > > free of any virus or other defect, it is the responsibility > of the recipient > > to ensure that it is virus free and no responsibility is > accepted by us for > > any loss or damage arising in any way from its unauthorized > modification or > > use. > > > > -- > .''`. Mark Howard > : :' : > `. `' http://www.tildemh.com > `- mh...@de... | mh...@ti... | mh...@ca... > NOTE: THIS IS A CONFIDENTIAL COMMUNICATION. This transmission is intended only for the use of the individuals or entity to which it is addressed. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, please return or delete it immediately. Although this e-mail and any attachments are believed to be free of any virus or other defect, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by us for any loss or damage arising in any way from its unauthorized modification or use. |
From: Jeffrey M. <Jef...@Br...> - 2004-02-26 17:50:40
|
I just checked in the code that does this but I have no way of knowing if it works. Can one of you please write a simple example how to sort the columns of a tree model and add it to the project? Thanks -Jeff > The rows-reordered signal is the only (as far as I can see) way of > being notified when rows are reordered, which is quite a crucial task > for many applications. It would be a real shame if we could not > implement this for 2.6. Would it be so bad to design the > public api now > and then figure out the native part later? > > On Wed, Feb 25, 2004 at 06:40:36AM -0500, Jeffrey Morgan wrote: > > The problem is that our event native layer doesn't know how > to handle > > an array of ints. I didn't want to make this type of > change this close > > to the beta1 release. > > > > -Jeff > > > > > -----Original Message----- > > > From: Mark Howard [mailto:mh...@ca...] > > > Sent: Tuesday, February 24, 2004 9:07 AM > > > To: Jeffrey S. Morgan > > > Subject: Re: [Java-gnome-checkins] CVS: > > > java-gnome/gtk/src/java/org/gnu/gtk/event > > > TreeModelListener.java,NONE,1.1 TreeModelEvent.java,NONE,1.1 > > > > > > > > > On Tue, Feb 24, 2004 at 04:19:38AM -0800, Jeffrey S. Morgan wrote: > > > > //public static final Type ROWS_REORDERED = new > > > Type(5, "ROWS_REORDERED"); > > > This will need to be a separate event - it needs to give > access to two > > > iters. > > > > > > > > > NOTE: THIS IS A CONFIDENTIAL COMMUNICATION. This > transmission is intended > > only for the use of the individuals or entity to which it > is addressed. If > > you are not the intended recipient, or the person > responsible for delivering > > the message to the intended recipient, please return or delete it > > immediately. Although this e-mail and any attachments are > believed to be > > free of any virus or other defect, it is the responsibility > of the recipient > > to ensure that it is virus free and no responsibility is > accepted by us for > > any loss or damage arising in any way from its unauthorized > modification or > > use. > > > > -- > .''`. Mark Howard > : :' : > `. `' http://www.tildemh.com > `- mh...@de... | mh...@ti... | mh...@ca... > NOTE: THIS IS A CONFIDENTIAL COMMUNICATION. This transmission is intended only for the use of the individuals or entity to which it is addressed. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, please return or delete it immediately. Although this e-mail and any attachments are believed to be free of any virus or other defect, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by us for any loss or damage arising in any way from its unauthorized modification or use. |
From: Luca De R. <pie...@li...> - 2004-02-27 01:08:45
|
Il gio, 2004-02-26 alle 18:40, Jeffrey Morgan ha scritto: > I just checked in the code that does this but I have no way of > knowing if it works. Can one of you please write a simple example > how to sort the columns of a tree model and add it to the project? If Mark can't do it, I have an app lying around with Treemodels in it; at least I will say if it works. -- Luca De Rugeriis <pie...@li...> |
From: Jeffrey M. <ku...@zo...> - 2004-02-27 01:46:15
|
On Thu, 2004-02-26 at 19:55, Luca De Rugeriis wrote: > Il gio, 2004-02-26 alle 18:40, Jeffrey Morgan ha scritto: > > I just checked in the code that does this but I have no way of > > knowing if it works. Can one of you please write a simple example > > how to sort the columns of a tree model and add it to the project? > If Mark can't do it, I have an app lying around with Treemodels in it; > at least I will say if it works. Great. Let me know if it works! -Jeff |
From: Luca De R. <pie...@li...> - 2004-02-27 02:57:14
|
Il ven, 2004-02-27 alle 02:19, Jeffrey Morgan ha scritto: > On Thu, 2004-02-26 at 19:55, Luca De Rugeriis wrote: > > Il gio, 2004-02-26 alle 18:40, Jeffrey Morgan ha scritto: > > > I just checked in the code that does this but I have no way of > > > knowing if it works. Can one of you please write a simple example > > > how to sort the columns of a tree model and add it to the project? > > If Mark can't do it, I have an app lying around with Treemodels in it; > > at least I will say if it works. > > Great. Let me know if it works! I've spoken too early: realized now that I need gtk-2.3.4 BTW ./configure didn't complain for the missed dependency. -- Luca De Rugeriis <pie...@li...> |
From: 'Mark H. <mh...@ca...> - 2004-02-28 22:43:19
|
I'm trying to test this now, but I can't get dataTable/TableExample to work. It fails at the first setValue(): An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x4D804B25 Function=gtk_list_store_set_value+0x45 Library=/usr/lib/libgtk-x11-2.0.so.0 Current Java thread: at org.gnu.gtk.ListStore.gtk_list_store_set_value(Native Method) at org.gnu.gtk.ListStore.setValue(ListStore.java:152) at dataTable.TableExample.<init>(TableExample.java:36) at dataTable.TableExample.main(TableExample.java:106) On Thu, Feb 26, 2004 at 12:40:39PM -0500, Jeffrey Morgan wrote: > I just checked in the code that does this but I have no way of > knowing if it works. Can one of you please write a simple example > how to sort the columns of a tree model and add it to the project? > > Thanks > -Jeff > > > The rows-reordered signal is the only (as far as I can see) way of -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
From: Jeffrey M. <ku...@zo...> - 2004-02-29 00:13:13
|
It ran fine for me. I did not get any error. What happens when you run the treestore/TreeStoreExample example? -Jeff On Sat, 2004-02-28 at 17:32, 'Mark Howard' wrote: > I'm trying to test this now, but I can't get dataTable/TableExample to > work. > It fails at the first setValue(): > > An unexpected exception has been detected in native code outside the VM. > Unexpected Signal : 11 occurred at PC=0x4D804B25 > Function=gtk_list_store_set_value+0x45 > Library=/usr/lib/libgtk-x11-2.0.so.0 > > Current Java thread: > at org.gnu.gtk.ListStore.gtk_list_store_set_value(Native Method) > at org.gnu.gtk.ListStore.setValue(ListStore.java:152) > at dataTable.TableExample.<init>(TableExample.java:36) > at dataTable.TableExample.main(TableExample.java:106) > > > > On Thu, Feb 26, 2004 at 12:40:39PM -0500, Jeffrey Morgan wrote: > > I just checked in the code that does this but I have no way of > > knowing if it works. Can one of you please write a simple example > > how to sort the columns of a tree model and add it to the project? > > > > Thanks > > -Jeff > > > > > The rows-reordered signal is the only (as far as I can see) way of |
From: Mark H. <mh...@ca...> - 2004-02-29 11:41:55
|
On Sat, Feb 28, 2004 at 06:44:39PM -0500, Jeffrey Morgan wrote: > It ran fine for me. I did not get any error. What happens when > you run the treestore/TreeStoreExample example? That fails too. I've done a make clean and I'm going to try rebuilding everything to see if that helps. It will take quite a while though. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
From: Mark H. <mh...@ca...> - 2004-02-29 14:07:14
|
I can't get the rows-reordered signal to work. I modified dataTable/TableExample treeWidget.setReorderable( true ); store.addListener( (TreeModelListener) this ); } public void treeModelEvent( TreeModelEvent event ){ System.out.println("TreeModelEvent"); if (event.isOfType(TreeModelEvent.Type.ROWS_REORDERED)){ System.out.println("Rows Reordered"); System.out.println("Iter " + event.getTreeIter().toString()); System.out.println("Path: " + event.getTreePath().toString() ); } } The callback is never called. I tried changing rows_reordered to rows-reordered in TreeModel.java, but this didn't help. > > On Thu, Feb 26, 2004 at 12:40:39PM -0500, Jeffrey Morgan wrote: > > > I just checked in the code that does this but I have no way of > > > knowing if it works. Can one of you please write a simple example > > > how to sort the columns of a tree model and add it to the project? > > > > > > Thanks > > > -Jeff > > > > > > > The rows-reordered signal is the only (as far as I can see) way of -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
From: Jeffrey M. <ku...@zo...> - 2004-02-29 14:12:15
|
Do you know if the event was fired in the native layer? -Jeff On Sun, 2004-02-29 at 08:55, Mark Howard wrote: > I can't get the rows-reordered signal to work. I modified > dataTable/TableExample > > treeWidget.setReorderable( true ); > store.addListener( (TreeModelListener) this ); > > } > > public void treeModelEvent( TreeModelEvent event ){ > System.out.println("TreeModelEvent"); > if (event.isOfType(TreeModelEvent.Type.ROWS_REORDERED)){ > System.out.println("Rows Reordered"); > System.out.println("Iter " + event.getTreeIter().toString()); > System.out.println("Path: " + event.getTreePath().toString() ); > } > } > > > The callback is never called. > I tried changing rows_reordered to rows-reordered in TreeModel.java, but > this didn't help. > > > > > On Thu, Feb 26, 2004 at 12:40:39PM -0500, Jeffrey Morgan wrote: > > > > I just checked in the code that does this but I have no way of > > > > knowing if it works. Can one of you please write a simple example > > > > how to sort the columns of a tree model and add it to the project? > > > > > > > > Thanks > > > > -Jeff > > > > > > > > > The rows-reordered signal is the only (as far as I can see) way of |
From: Mark H. <mh...@ca...> - 2004-02-29 14:17:38
|
On Sun, Feb 29, 2004 at 08:43:15AM -0500, Jeffrey Morgan wrote: > Do you know if the event was fired in the native layer? It should have been according to the docs for setReorderable(bool). How can I find out? > > -Jeff > > > On Sun, 2004-02-29 at 08:55, Mark Howard wrote: > > I can't get the rows-reordered signal to work. I modified > > dataTable/TableExample > > > > treeWidget.setReorderable( true ); > > store.addListener( (TreeModelListener) this ); > > > > } > > > > public void treeModelEvent( TreeModelEvent event ){ > > System.out.println("TreeModelEvent"); > > if (event.isOfType(TreeModelEvent.Type.ROWS_REORDERED)){ > > System.out.println("Rows Reordered"); > > System.out.println("Iter " + event.getTreeIter().toString()); > > System.out.println("Path: " + event.getTreePath().toString() ); > > } > > } > > > > > > The callback is never called. > > I tried changing rows_reordered to rows-reordered in TreeModel.java, but > > this didn't help. > > > > > > > > On Thu, Feb 26, 2004 at 12:40:39PM -0500, Jeffrey Morgan wrote: > > > > > I just checked in the code that does this but I have no way of > > > > > knowing if it works. Can one of you please write a simple example > > > > > how to sort the columns of a tree model and add it to the project? > > > > > > > > > > Thanks > > > > > -Jeff > > > > > > > > > > > The rows-reordered signal is the only (as far as I can see) way of > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > java-gnome-hackers mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-hackers > -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
From: Jeffrey M. <ku...@zo...> - 2004-02-29 14:58:25
|
On Sun, 2004-02-29 at 09:06, Mark Howard wrote: > On Sun, Feb 29, 2004 at 08:43:15AM -0500, Jeffrey Morgan wrote: > > Do you know if the event was fired in the native layer? > > It should have been according to the docs for setReorderable(bool). How > can I find out? > All signals pass through the method jg_signal_cb in org_gnu_glib_GObject.c. You might try to add some printf statements here. I am about to leave for about eight hours so I will not be able to help you on this. Please post to this list with your results and I will try to pick up where you leave off when I return. -Jeff |
From: Mark H. <mh...@ca...> - 2004-02-29 19:08:53
|
ListStore and TreeStore weren't calling super.intializeEventHandlers(). I've added this but there's another problem: ** WARNING **: Java-GNOME - cannot find callback method handleRowsReordered in the specified object with signature (III)V this causes an exception: Exception in thread "main" java.lang.RuntimeException: at org.gnu.glib.GObject.addEventHandler(Native Method) at org.gnu.glib.EventMap.initialize(EventMap.java:62) at org.gnu.gtk.TreeModel.initializeEventHandlers(TreeModel.java:253) at org.gnu.gtk.ListStore.<init>(ListStore.java:50) at dataTable.TableExample.<init>(TableExample.java:35) at dataTable.TableExample.main(TableExample.java:112) TreeModel has void handleRowsReordered( int, int, int[] ); It seems we have another day or two for the release. I've not had chance to look at the destroy and delete signals - could you possibly do this? On Sun, Feb 29, 2004 at 09:29:24AM -0500, Jeffrey Morgan wrote: > On Sun, 2004-02-29 at 09:06, Mark Howard wrote: > > On Sun, Feb 29, 2004 at 08:43:15AM -0500, Jeffrey Morgan wrote: > > > Do you know if the event was fired in the native layer? > > > > It should have been according to the docs for setReorderable(bool). How > > can I find out? > > > > All signals pass through the method jg_signal_cb in > org_gnu_glib_GObject.c. You might try to add some > printf statements here. I am about to leave for about > eight hours so I will not be able to help you on this. > Please post to this list with your results and I will > try to pick up where you leave off when I return. > > -Jeff > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > java-gnome-hackers mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-hackers > -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
From: Jeffrey M. <ku...@zo...> - 2004-02-29 23:40:38
|
This is the problem that I was afraid of. This is due the what I explained in my original email. Our bindings event handling doesn't know how to handle an array of ints so it thinks it is an int. This is why you are getting the message. We now have until Wednesday so I should be able to address this over the next day or so. -Jeff On Sun, 2004-02-29 at 13:57, Mark Howard wrote: > ListStore and TreeStore weren't calling > super.intializeEventHandlers(). I've added this but there's another > problem: > > ** WARNING **: Java-GNOME - cannot find callback method handleRowsReordered in the specified object with signature (III)V > > this causes an exception: > Exception in thread "main" java.lang.RuntimeException: > at org.gnu.glib.GObject.addEventHandler(Native Method) > at org.gnu.glib.EventMap.initialize(EventMap.java:62) > at org.gnu.gtk.TreeModel.initializeEventHandlers(TreeModel.java:253) > at org.gnu.gtk.ListStore.<init>(ListStore.java:50) > at dataTable.TableExample.<init>(TableExample.java:35) > at dataTable.TableExample.main(TableExample.java:112) > > TreeModel has void handleRowsReordered( int, int, int[] ); > > It seems we have another day or two for the release. I've not had chance > to look at the destroy and delete signals - could you possibly do this? > > On Sun, Feb 29, 2004 at 09:29:24AM -0500, Jeffrey Morgan wrote: > > On Sun, 2004-02-29 at 09:06, Mark Howard wrote: > > > On Sun, Feb 29, 2004 at 08:43:15AM -0500, Jeffrey Morgan wrote: > > > > Do you know if the event was fired in the native layer? > > > > > > It should have been according to the docs for setReorderable(bool). How > > > can I find out? > > > > > > > All signals pass through the method jg_signal_cb in > > org_gnu_glib_GObject.c. You might try to add some > > printf statements here. I am about to leave for about > > eight hours so I will not be able to help you on this. > > Please post to this list with your results and I will > > try to pick up where you leave off when I return. > > > > -Jeff > > > > > > > > ------------------------------------------------------- > > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > > Build and deploy apps & Web services for Linux with > > a free DVD software kit from IBM. Click Now! > > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > > _______________________________________________ > > java-gnome-hackers mailing list > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/java-gnome-hackers > > |