java-gnome-developer Mailing List for The java-gnome language bindings project (Page 94)
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: Jeffrey M. <Jef...@Br...> - 2004-02-04 14:37:17
|
> Looks like this is a problem elsewhere, too. For instance, a call to > Container.getChildren( ) returns a list of Widgets. New, > generic Widgets. These are not new generic Widgets. The native method returns a GList* of the actual GtkWidgets that are contained within the Container. This is converted to an array of ints that save the location of each widget. Back in the java layer a constructor is called on the Widget class that accepts this pointer. If you have an object that already contains the handle then you end up with two objects that actually contain the same handle. I guess this could cause problems. > I can't do > much with them because they can not be downcast to their actual types. The primary problem is identifying the types. GTK has a runtime type identification capability but we have not implemented it fully. Other than that, I can not see why there would be a problem casting the object to its' actual type. > > Is there a global mapping from handle back to Widget? > Couldn't find one, > but it > seems like this is the only real answer to wrapping API calls > that return > widgets. > Something like (not complete): > > GObject.java... > > public GObject(int handle) { > this.handle = handle; > revMap.put( new Integer( handle ), this ); > } > > Container.java... > > public Widget[] getChildren() { > int[] hndls = gtk_container_get_children(handle); > if (null == hndls) > return null; > Widget[] widgets = new Widget[hndls.length]; > for (int i = 0; i < hndls.length; i++) { > widgets[i] = (Widget)revMap( new Integer( hndls[i] ); > } > return widgets; > } > This is something we can look into but I probably will not have the time to investigate until after release 2.6. -Jeff |
From: Jeffrey M. <Jef...@Br...> - 2004-02-04 14:21:25
|
Currently java-gnome does not support this feature. To be quite honest I haven't even researched this to determine how it would be accomplised in the native libs. Currently this is not on our plans but our plans could change. If you are interested in looking into this and could provide detailed information we might be able to add this in the near future. -Jeff > -----Original Message----- > From: Keith Lea [mailto:ke...@cs...] > Sent: Wednesday, February 04, 2004 12:17 AM > To: jav...@li... > Subject: [Java-gnome-developer] GNOME panel notification area support > > > Hi, I was wondering if java-gnome supported adding an item to > the GNOME > notification area. If not, is this planned? > > Thanks! > -Keith > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |
From: Jeffrey M. <Jef...@Br...> - 2004-02-04 14:18:27
|
There is a method called setIcon() on gtk.Window. If you set the icon on the TOPLEVEL window you will see it when you ALT-TAB as well as other locations. -Jeff > Hi again, > > i've got another question. I've seen that my app appears as a > white icon > when i make ALT-TAB to cycle the windows. Is there any way of > change it? > Thanks. > -- > Alex Moreno > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |
From: Jeffrey M. <Jef...@Br...> - 2004-02-04 14:05:43
|
Great work. It looks really cool. Perhaps we can place a link on our website. > Hi, > > i've published some first screenshots of keymaster :-). It's > written on > spanish (sorry, i have to change this) but the images are multilingual > :-). > > http://www.alexmoreno.net/article.php?story=2004020414171935 > > Greetings. > -- > Alex Moreno > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |
From: Alex M. <ale...@gl...> - 2004-02-04 13:51:15
|
Hi, i've published some first screenshots of keymaster :-). It's written on spanish (sorry, i have to change this) but the images are multilingual :-). http://www.alexmoreno.net/article.php?story=2004020414171935 Greetings. -- Alex Moreno |
From: SourceForge.net <no...@so...> - 2004-02-04 13:07:13
|
Bugs item #889394, was opened at 2004-02-02 18:43 Message generated for change (Comment added) made by kuzman You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101522&aid=889394&group_id=1522 Category: build Group: enhancement request >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nicolas Mommaerts (mr_dfuse) Assigned to: Jeffrey S. Morgan (kuzman) Summary: ability to specify location/name of libgcj.jar at configure Initial Comment: Libgcj.jar is not named like this on all distro's, nor is it always in the locations where configure looks. An option to specify where to look and how this file is named for configure would be useful. ---------------------------------------------------------------------- >Comment By: Jeffrey S. Morgan (kuzman) Date: 2004-02-04 08:07 Message: Logged In: YES user_id=90843 I have a partial fix for this problem. I have changed the configure script so it is more robust in its' location of the libgcj jar file. I tested this on a gentoo and redhat system and it seems to work fine. It will be in cvs shortly and will be included in release 0.8.3. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101522&aid=889394&group_id=1522 |
From: SourceForge.net <no...@so...> - 2004-02-04 13:05:07
|
Bugs item #889519, was opened at 2004-02-03 01:12 Message generated for change (Comment added) made by kuzman You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101522&aid=889519&group_id=1522 Category: build Group: defect >Status: Closed >Resolution: Fixed Priority: 7 Submitted By: Sébastien Moran (sebz) Assigned to: Jeffrey S. Morgan (kuzman) Summary: configure should look for db2html Initial Comment: Unpacking java-gnome-0.8.2 and doing : ./configure make I obtain 2 compilations' errors. Then, db2html is not found on my system, why it is not required by the 'configure' ? The errors are in the attached file. ---------------------------------------------------------------------- >Comment By: Jeffrey S. Morgan (kuzman) Date: 2004-02-04 08:04 Message: Logged In: YES user_id=90843 The configure script now looks for db2html and docbook2html. This fix is in cvs and will be included in release 0.8.3. ---------------------------------------------------------------------- Comment By: Mark Howard (howama) Date: 2004-02-03 08:42 Message: Logged In: YES user_id=189107 The configure script needs to be updated to find db2html. From the attached file: PasswordDialog is a known problem, will be fixed in 0.8.3 gconf problems are also known. I think they're also fixed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101522&aid=889519&group_id=1522 |
From: SourceForge.net <no...@so...> - 2004-02-04 13:04:19
|
Bugs item #889400, was opened at 2004-02-02 18:50 Message generated for change (Comment added) made by kuzman You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101522&aid=889400&group_id=1522 Category: build Group: defect >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nicolas Mommaerts (mr_dfuse) Assigned to: Jeffrey S. Morgan (kuzman) Summary: db2html is called docbook2html on some distro's Initial Comment: When generating the doc's, db2html is used, but on some distro's this file is called docbook2html. ---------------------------------------------------------------------- >Comment By: Jeffrey S. Morgan (kuzman) Date: 2004-02-04 08:04 Message: Logged In: YES user_id=90843 The system now looks for db2html or docbook2html. This fix is in cvs and will be included in relese 0.8.3. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101522&aid=889400&group_id=1522 |
From: Alex M. <ale...@gl...> - 2004-02-04 11:05:25
|
thanks everybody for your corrections. It is going to help me a lot. In my app i have a button which launch the operation, and this button is disabled if no selection is made (so it never happens an exception and i dindn't realize of this fact). But you're right Luca, i'll change this. Thanks again. --- On Tue, 2004-02-03 at 22:26, Luca De Rugeriis wrote: Also note that since the CHANGED event is only a hint, you have toexpect that it's possible that 0 rows are actually selected.I haven't tried your code, but for the above reason it could launch aNullPointerException when it reaches the end of the tree rows withoutfinding a selected one (or when performed on an empty treeview), so youhave to check that anIter != null. -- Alex Moreno |
From: Alex M. <ale...@gl...> - 2004-02-04 10:59:35
|
Hi again, i've got another question. I've seen that my app appears as a white icon when i make ALT-TAB to cycle the windows. Is there any way of change it? Thanks. -- Alex Moreno |
From: Jeffrey M. <ku...@zo...> - 2004-02-04 09:51:12
|
The java-gnome team is pleased to announce the latest development release of the java-gnome bindings. This release reqires libgnomeui 2.5.2 or higher and/or gtk 2.3.1 or higher. The following lists the changes for this release: 2.5.4 (3 February 2004) - New Classes: gdk.Display [Jeffrey Morgan] gdk.Screen [Jeffrey Morgan] gtk.FileChooserDialog [Jeffrey Morgan] gtk.FileChooserWidget [Jeffrey Morgan] gtk.FileChooserException [Jeffrey Morgan] gtk.FileChooserHelper [Jeffrey Morgan] gtk.FileFilter [Jeffrey Morgan] gtk.FileFilterFlags [Jeffrey Morgan] gtk.OptionMenuDelegate [Jeff Long] gtk.RadioToolButton [Jeffrey Morgan] gtk.SeparatorToolItem [Jeffrey Morgan] gtk.ToolButton [Jeffrey Morgan] gtk.ToggleToolButton [Jeffrey Morgan] gtk.event.HandleBoxEvent [Jeffrey Morgan] gtk.event.StatusBarEvent [Jeffrey Morgan] gtk.event.ToolButtonEvent [Jeffrey Morgan] gtk.event.ToggleToolButtonEvent [Jeffrey Morgan] - New Interfaces: gtk.FileChooser [Jeffrey Morgan] gtk.TreeSortable [Mark Howard] gtk.TreeIterComparison [Mark Howard] gtk.TreeDragSource [Mark Howard] gtk.TreeDragSourceListener [Mark Howard] gtk.TreeDragDest [Mark Howard] gtk.TreeDragDestListener [Mark Howard] gtk.event.HandleBoxListener [Jeffrey Morgan] gtk.event.StatusBarListener [Jeffrey Morgan] gtk.event.ToolButtonListener [Jeffrey Morgan] gtk.event.ToggleToolButtonListener [Jeffrey Morgan] - Updated Classes: gnome.App - deprecated message, flash, error and warning methods [Jeffrey Morgan] gtk.Alignment - added getTop/Bottom/Left/RightPadding methods [Jeffrey Morgan] gtk.ButtonBox - added getChildSecondary method [Jeffrey Morgan] gtk.Button - added setFocusOnClick and getFocusOnClick methods [Jeffrey Morgan] gtk.Calendar - added next_month and prev_month events. [Jeffrey Morgan] gtk.Calendar - added getDisplayOptions method [Jeffrey Morgan] gtk.CheckMenuItem - added toggled event [Jeffrey Morgan] gtk.CheckMenuItem - added set/getDrawAsRadio methods [Jeffrey Morgan] gtk.Container - added getChildren method. [Jeffrey Morgan] gtk.HandleBox - added child_attached and child_detached events [Jeffrey Morgan] gtk.ListenerDelegate - added support for OptionMenu [Jeff Long] gtk.Menu - added set_screen, menu_attach, and set_monitor native methods [Jeffrey Morgan] gtk.MessageDialog - add markup option for constructor and setMarkup methods [Jeffrey Morgan] gtk.Notebook - added getNumPages method. [Jeffrey Morgan] gtk.RadioButton - added get/setGroup methods [Jeffrey Morgan] gtk.StatusBar - added text_pushed and text_popped events [Jeffrey Morgan] gtk.TreeStore, gtk.ListStore - Implement TreeSortable and TreeDrag* [Mark Howard] gtk.Widget - added canActivateAccel, getScreen, hasScreen, getDisplay and getRootWindow methods [Jeffrey Morgan] gtk.Window - added set/getSkipTaskbarHint methods [Jeffrey Morgan] gtk.Window - added set/getPagerHint methods [Jeffrey Morgan] gtk.Window - added set/getScreen methods [Jeffrey Morgan] gtk.Window - added isActive and hasToplevelFocus methods [Jeffrey Morgan] gtk.Window - added setIconFromFile and setDefaultIconFromFile methods [Jeffrey Morgan] gtk.Window - added setAutoStartupNotification, fullscreen, unfullscreen setKeepAbove and setKeepBelow methods [Jeffrey Morgan] - Deprecated Classes: gnome.PopupMenu [Jeffrey Morgan] - New Examples: EntryCompletionExample [Jeffrey Morgan] FileChooserExample [Jeffrey Morgan] An all-in-one package is available on the java-gnome site and individual modules are available on the gnome ftp site: All-in-one http://prdownloads.sourceforge.net/java-gnome/java-gnome-2.5.4.tar.bz2?download libgtk-java: Bindings for: GTK+, glib, atk, pango, gdk Tarball: http://ftp.gnome.org/pub/GNOME/sources/libgtk-java/2.3/libgtk-java-2.3.4.tar.gz libgnome-java: Bindings for: libgnome, libgnomeui, libgnomecanvas Tarball: http://ftp.gnome.org/pub/GNOME/sources/libgnome-java/2.5/libgnome-java-2.5.4.tar.gz libgconf-java Bindings for: gconf Tarball: http://ftp.gnome.org/pub/GNOME/sources/libgconf-java/2.5/libgconf-java-2.5.4.tar.gz libglade-java Bindings for: libglade Tarball: http://ftp.gnome.org/pub/GNOME/sources/libglade-java/2.3/libglade-java-2.3.4.tar.gz -Jeff |
From: Keith L. <ke...@cs...> - 2004-02-04 05:16:57
|
Hi, I was wondering if java-gnome supported adding an item to the GNOME notification area. If not, is this planned? Thanks! -Keith |
From: SourceForge.net <no...@so...> - 2004-02-04 03:39:04
|
Bugs item #889857, was opened at 2004-02-03 18:38 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101522&aid=889857&group_id=1522 Category: build Group: defect Status: Open Resolution: None Priority: 5 Submitted By: Nicolas Mommaerts (mr_dfuse) Assigned to: Nobody/Anonymous (nobody) Summary: doc generation fails on 0.8.2 Initial Comment: when installing java-gnome, and it get's to the step it wants to install the documenation (with install -d), an error created because the sourcedir doesn't contain only directories and install -d api/* is used. This happens in doc-gnome, doc-core and doc-glade ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101522&aid=889857&group_id=1522 |
From: Luca De R. <pie...@li...> - 2004-02-04 03:37:33
|
Il mar, 2004-02-03 alle 13:06, Jeffrey Morgan ha scritto: > > On Mon, 2004-02-02 at 19:08, Luca De Rugeriis wrote: > > > Il mar, 2004-02-03 alle 00:40, Ray Auge ha scritto: > > > > > > > > > > > This comes directly from the examples provided with JG 0.82, > > > > (tree/TreeExample.java) > > > This was known and it's a weird error. Code similar to it > > works without > > > any problem. I can't remember if Jeff fixed it in cvs. > > > > Thanks, but unfortunately I can't move to the CVS-HEAD right now cause > > I'm working on my thesis, plus I'm on Yellod Dog 3.0.1.(so gnome 2.2) > > I'd need to go through the whole Gnome 2.3.x dance, which > > would probably > > take a good chunk out of my semester, and might leave me without the > > tools I need to finish off my work. ;). > > I have written soo much code in the past two months that I > can not remember for sure but I think I did address this > problem. I will investigate and try to include any fix in > the 0.8.3 release that I am trying to complete this week. However notice that I'm writing a frontend for lame and it has treeview with pixbufs in it. It is being developed using glade and j-g 0.8.2, and I had no problem with it so far. -- Luca De Rugeriis <pie...@li...> |
From: Luca De R. <pie...@li...> - 2004-02-04 03:06:12
|
Il mar, 2004-02-03 alle 05:15, Ray Auge ha scritto: > Hello All, > > I've attached a sample TreeListenerTest class to demonstrate a problem > I'm having with the TreeView Object. > > The code is pretty self explanatory, but what I'm trying to do is obtain > the value of a selected row in one tree and have it appended to the > second tree. // OK, i got all this to work // But, how to get the selected row from first tree in order to // extract the int value // from the it's store and append it to the second tree? // ... Just grab the int value from te CellRenderer (of the selected row) from the upper tree and create a new row in the lower one with that value. -- Luca De Rugeriis <pie...@li...> |
From: Jeffrey M. <ku...@zo...> - 2004-02-04 02:00:12
|
Nicolas, Please just hold tight. Help is on the way!! I am working on a 0.8.3 release that will resolve many of the build problems that were present in 0.8.2. I wanted to release it tomorrow but just learned that there was a decision to move forward with the next GNOME Platform Bindings dev release tonight so I am currently spending my time on this. I will release 0.8.3 this week. -Jeff On Tue, 2004-02-03 at 13:29, Nicolas Mommaerts wrote: > Ok, I thought ./genMakefile.in was executed somewhere during the build. > > I'm a Java developer, I know *nothing* about Makefiles, autoconfig or > build's on Linux in general. But I do want to have 0.8.2 working on my > system that's why I'm making those patches (and learning about it in the > process), so my patches are probably the most un-elegant solutions you > can imagine. > > On Tue, 2004-02-03 at 10:11, Mark Howard wrote: > > Hi, > > > > If you change the Makefile.in.in files, you have to run > > ./genMakefile.in. These generate Makefile.in files, which are then > > turned into makefiles by configure > > > > Similarly for configure.in.in - you need to run ./genconfigure and then > > autoconf to get the configure script > > > > Please send us any changes you make - the build scripts could do with a > > lot of tlc. If you know about autoconf, please let me know - there are a > > few specific things we would like doing to the configure scripts. > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |
From: Nicolas M. <ni...@be...> - 2004-02-04 01:54:49
|
Ok, I thought ./genMakefile.in was executed somewhere during the build. I'm a Java developer, I know *nothing* about Makefiles, autoconfig or build's on Linux in general. But I do want to have 0.8.2 working on my system that's why I'm making those patches (and learning about it in the process), so my patches are probably the most un-elegant solutions you can imagine. On Tue, 2004-02-03 at 10:11, Mark Howard wrote: > Hi, > > If you change the Makefile.in.in files, you have to run > ./genMakefile.in. These generate Makefile.in files, which are then > turned into makefiles by configure > > Similarly for configure.in.in - you need to run ./genconfigure and then > autoconf to get the configure script > > Please send us any changes you make - the build scripts could do with a > lot of tlc. If you know about autoconf, please let me know - there are a > few specific things we would like doing to the configure scripts. |
From: Luca De R. <pie...@li...> - 2004-02-03 22:56:50
|
Il mar, 2004-02-03 alle 23:40, Luca De Rugeriis ha scritto: > 2)So the more convenient way to work with multiple selected rows is to > use the the forEachSelected method. Is it right? If so we should add > some example code about it, because, if you are without eclipse (like I > am now), it's not really easy to use at first glance. Ok, using it is very much like using the various addListener methods ;) -- Luca De Rugeriis <pie...@li...> |
From: Luca De R. <pie...@li...> - 2004-02-03 22:37:42
|
Il mar, 2004-02-03 alle 21:57, Jeffrey Morgan ha scritto: > Here is a little snippet of code taken from TestGTK. > It shows a different way of getting the selected rows. > > TreeView treeView = new TreeView(list); > TreeSelection selection = treeView.getSelection(); > selection.setMode(SelectionMode.SINGLE); > selection.addListener(new TreeSelectionListener() { > public void selectionChangedEvent(TreeSelectionEvent event ) { > TreeSelection mySelection = (TreeSelection)event.getSource(); > TreeIter anIter = list.getFirstIter(); > while (null != anIter) { > if (mySelection.getSelected(anIter)) { > boolean fixed = list.getValue(anIter, b); > int bugNum = list.getValue(anIter, i); > String severity = list.getValue(anIter, s1); > String description = list.getValue(anIter, s2); > System.out.println("Row selected:"); > System.out.println(" Fixed: " + fixed + " Num: " + bugNum + " > Sev: " + severity + " Desc: " + description); > } > anIter = list.getNextIter(anIter); > } > } > }); Another more compact way (single selection): public void removeItem() { TreeSelection mySelection = tree.getSelection(); TreeIter anIter = store.getFirstIter(); while (!(null == anIter || mySelection.getSelected(anIter))) { anIter = store.getNextIter(anIter); } store.removeRow(anIter); } Now a couple of questions: 1)Souldn't be necessary to modify the above to read if (anIter != null) store.removeRow(anIter); ? I think it should launch a NullPointerException if 'store.removeRow(null)' is executed, but it doesn't. 2)So the more convenient way to work with multiple selected rows is to use the the forEachSelected method. Is it right? If so we should add some example code about it, because, if you are without eclipse (like I am now), it's not really easy to use at first glance. -- Luca De Rugeriis <pie...@li...> |
From: Luca De R. <pie...@li...> - 2004-02-03 21:53:04
|
Il mar, 2004-02-03 alle 13:06, Jeffrey Morgan ha scritto: > > On Mon, 2004-02-02 at 19:08, Luca De Rugeriis wrote: > > > Il mar, 2004-02-03 alle 00:40, Ray Auge ha scritto: > > > > > > > > > > > This comes directly from the examples provided with JG 0.82, > > > > (tree/TreeExample.java) > > > This was known and it's a weird error. Code similar to it > > works without > > > any problem. I can't remember if Jeff fixed it in cvs. > > > > Thanks, but unfortunately I can't move to the CVS-HEAD right now cause > > I'm working on my thesis, plus I'm on Yellod Dog 3.0.1.(so gnome 2.2) > > I'd need to go through the whole Gnome 2.3.x dance, which > > would probably > > take a good chunk out of my semester, and might leave me without the > > tools I need to finish off my work. ;). > > I have written soo much code in the past two months that I > can not remember for sure but I think I did address this > problem. I will investigate and try to include any fix in > the 0.8.3 release that I am trying to complete this week. However notice that I'm writing a frontend for lame and it has treeview with pixbufs in it. It is being developed using glade and j-g 0.8.2, and I had no problem with it so far. -- Luca De Rugeriis <pie...@li...> |
From: Luca De R. <pie...@li...> - 2004-02-03 21:52:43
|
Il mar, 2004-02-03 alle 08:18, Nicolas Mommaerts ha scritto: > Hey, > I patched Makefile.in.in to get around the install errors, but that > doesn't seem to work as the Makefile doesn't seem to take over these > changes although the header of the file says it is generated by > ./genMakeFile.in from Makefile.in.in > > If I change something to the Makefile after unpacking and before > ./configure, in what file do I have to change it? just re-run ./genConfigure && ./genMakefile && autoconf -- Luca De Rugeriis <pie...@li...> |
From: Luca De R. <pie...@li...> - 2004-02-03 21:51:32
|
Il mar, 2004-02-03 alle 05:15, Ray Auge ha scritto: > Hello All, > > I've attached a sample TreeListenerTest class to demonstrate a problem > I'm having with the TreeView Object. > > The code is pretty self explanatory, but what I'm trying to do is obtain > the value of a selected row in one tree and have it appended to the > second tree. // OK, i got all this to work // But, how to get the selected row from first tree in order to // extract the int value // from the it's store and append it to the second tree? // ... Just grab the int value from te CellRenderer (of the selected row) from the upper tree and create a new row in the lower one with that value. -- Luca De Rugeriis <pie...@li...> |
From: Luca De R. <pie...@li...> - 2004-02-03 21:48:57
|
Il mar, 2004-02-03 alle 22:37, Mark Howard ha scritto: > Have you looked at selection for each function? It will execute a method > for each selected row of a tree. > > Iterating over all rows is likely to be quite slow since it uses many > jni calls. The selection for each method does not. > > Gtk 2.3 and hence java-gnome 2.5 will have a much nicer api for doing > this - there is a TreeIter[] getSelectedRows() method. getSelectedRows() ... wow, I've seen it in gtk-docs, and in the meanwhile I've used cycles to find the multiple selected rows. I hope I could help you on it. Have you got a little example for us to see? I couldn't figure out well how that method is supposed to be called. :( -- Luca De Rugeriis <pie...@li...> |
From: Jeffrey M. <Jef...@Br...> - 2004-02-03 21:44:49
|
Here is a little snippet of code taken from TestGTK. It shows a different way of getting the selected rows. TreeView treeView = new TreeView(list); TreeSelection selection = treeView.getSelection(); selection.setMode(SelectionMode.SINGLE); selection.addListener(new TreeSelectionListener() { public void selectionChangedEvent(TreeSelectionEvent event ) { TreeSelection mySelection = (TreeSelection)event.getSource(); TreeIter anIter = list.getFirstIter(); while (null != anIter) { if (mySelection.getSelected(anIter)) { boolean fixed = list.getValue(anIter, b); int bugNum = list.getValue(anIter, i); String severity = list.getValue(anIter, s1); String description = list.getValue(anIter, s2); System.out.println("Row selected:"); System.out.println(" Fixed: " + fixed + " Num: " + bugNum + " Sev: " + severity + " Desc: " + description); } anIter = list.getNextIter(anIter); } } }); > The last days i've been working with trees. > > I've found a way of getting selected rows. I don't know is this is a > correct way of doing it. I'd much appreciate corrections o > opinions. The > way which i'm discovering which row is selected is iterating over the > tree until i foun the row. Then, i make all the desired work: > > TreeIter iter = tree.getModel().getFirstIter(); > Boolean exit = Boolean.False; > do{ > //if the searched row is equals the actual row > if (win.tree.getSelection().getSelected(iter)) { > System.out.println(tree.getModel().getValue(iter,win.dataBlock)); > exit = Boolean.TRUE; > > } > }while(tree.getModel().moveIterNext(iter) && !exit.booleanValue())) > > where > DataBlockString dataBlock = new DataBlockString(); > [....] > DataBlock data[] = new DataBlock[] { dataBlock, dataBlock2, ...} > > > As I said, corrections a comments are wellcome :-). > > I wish it can help you. > Greetings > -- > Alex Moreno > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |
From: Luca De R. <pie...@li...> - 2004-02-03 21:39:12
|
Il mar, 2004-02-03 alle 22:26, Luca De Rugeriis ha scritto: > I would simply use: > > if ((event.getType()) == TreeSelectionEvent.Type.CHANGED) { > TreeIter anIter = treeStore.getFirstIter(); > while (!(anIter == null && selection.getSelected(anIter))) { > anIter = treeStore.getNextIter(anIter); > } > if (anIter != null) { > rowSelected = Integer.parseInt((treeStore.getPath(anIter)).toString()); > //System.out.println("row n." + rowSelected + " selected"); > } else > rowSelected = -1; > } > > So you can get the selected row simply getting the rowSelected int. > > Also note that since the CHANGED event is only a hint, you have to > expect that it's possible that 0 rows are actually selected. > I haven't tried your code, but for the above reason it could launch a > NullPointerException when it reaches the end of the tree rows without > finding a selected one (or when performed on an empty treeview), so you > have to check that anIter != null. > > I also have a smart algorithm to remove multiple selected rows from a > treeview. It is: > > public void removeButtonClicked() { > TreePath path = new TreePath("0"); > //stop at the end of the list > while (store.getIter(path) != null) { > //remove contiguous selected rows > while (mySelection.getSelected(path)) > store.removeRow(store.getIter(path)); > //step ahead until an unselected row or null is found > while (!mySelection.getSelected(path) && store.getIter(path) != null) > path.next(); > } > } > > Also if you enclose the first method with a while (store.getIter(path) != null) loop, it works with multiple selections too. -- Luca De Rugeriis <pie...@li...> |