Thread: [Java-gnome-developer] Gtk Tree Row Reference missing?
Brought to you by:
afcowie
From: Manuel C. <ll...@us...> - 2005-12-09 17:04:59
|
Hi all, I can't find the way to create RowReference, so I can update row data in the TreeStore without doing a linear search every time. http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeModel.html#GtkTreeRowReference I also checked CVS and didn't find anything. Is RowReference planned? Thanks! |
From: Andrew C. <an...@op...> - 2005-12-10 00:00:00
|
On Fri, 2005-09-12 at 18:04 +0100, Manuel Clos wrote: > Is RowReference planned? It certainly will be if you write it. <shrug> Our implementations are largely what people needed as they needed them and are not necessarily some defacto official complete coverage of, say, GTK... and in some cases the coverage that is there was written a LONG time ago and so might well miss convenience functions and new functionality that has been added in the last 2-3 years. The ProgressBar CellRenderer is certainly a case in point - that was only ported from GAIM into GTK about a year ago. If there's something missing, by all means we would welcome a contribution. I'd invite you to join the java-gnome-hackers mailing list and to chat with us in #java-gnome on gimpnet if you want a leg up in how to hack on the bindings. AfC San Diego |
From: Manuel C. <ll...@us...> - 2005-12-10 14:23:43
|
Ok! I'll take a look at CellRendererProgress. See you! Andrew Cowie wrote: > On Fri, 2005-09-12 at 18:04 +0100, Manuel Clos wrote: >> Is RowReference planned? > > It certainly will be if you write it. > > <shrug> Our implementations are largely what people needed as they > needed them and are not necessarily some defacto official complete > coverage of, say, GTK... and in some cases the coverage that is there > was written a LONG time ago and so might well miss convenience functions > and new functionality that has been added in the last 2-3 years. The > ProgressBar CellRenderer is certainly a case in point - that was only > ported from GAIM into GTK about a year ago. > > If there's something missing, by all means we would welcome a > contribution. I'd invite you to join the java-gnome-hackers mailing list > and to chat with us in #java-gnome on gimpnet if you want a leg up in > how to hack on the bindings. |
From: Adam J. <ajo...@re...> - 2005-12-11 14:22:27
|
On Fri, 2005-09-12 at 18:04 +0100, Manuel Clos wrote: >Is RowReference planned? > > That does seem like a useful little interface to have, I'd be willing to invest some time into implementing this. Adam |
From: Joao V. <jvi...@ya...> - 2005-12-11 15:18:03
|
Is TreeRowReference recommended by Gtk developers? I didn't see in the gtk doc which functions this interface provides... weird. But it does seem like a useful interface. BTW, in the lastest libgtk-java there's some new TreeView/ListStore/TreeStore API that makes things a little easier... For example, this piece of code Lars sent: ----- DataColumnObject object_column = new DataColumnObject(); ListStore list_store = new ListStore(new DataColumn[]{ object_column }); String object = "Foobar"; TreeIter iter = list_store.appendRow(); list_store.setValue(iter, object_column, object); ----- Could be done this way: ----- DataColumnObject object_column = new DataColumnObject(); ListStore list_store = new ListStore(new DataColumn[]{ object_column }); list_store.addRow(new DataRow().add("Foobar")); ----- Yes, there's still no docs about this, it's my fault :/ Me thinks it would be cool to do a "documenting marathon" with lots of folks documentating Java-Gnome at the same time; tutorials, hints, javadocs... anything one wishes to contribute. Cheers, J.V. --- Adam Jocksch <ajo...@re...> escreveu: > On Fri, 2005-09-12 at 18:04 +0100, Manuel Clos wrote: > > >Is RowReference planned? > > > > > That does seem like a useful little interface to have, I'd be willing to > invest some time into implementing this. > > Adam > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > _______________________________________________________ Yahoo! doce lar. Faça do Yahoo! sua homepage. http://br.yahoo.com/homepageset.html |
From: Andrew C. <an...@op...> - 2005-12-12 22:11:55
|
On Sun, 2005-11-12 at 15:17 +0000, Joao Victor wrote: > Is TreeRowReference recommended by Gtk developers? My personal take on this is that is doesn't matter what the GTK developers recommend or don't recommend. There is always going to be an impedance mismatch between Java and C even though Glib and GTK are somewhat object based. And although we do our best to provide underlying functionality, there is nothing that says we have to slavishly follow what they're doing down there - theirs is, after all, just another under-resourced open source project like ours and in any case there are large areas of cruft and historical baggage that we can occasionally avoid. [DataColumn and its subclasses come to mind - when mh implemented the TreeView stuff he used different names than the underlying bits in GTK. For the better IMHO - he took the chance to slightly increase clarity] AfC Sydney |