java-gnome-developer Mailing List for The java-gnome language bindings project (Page 26)
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: Remy S. <rem...@gm...> - 2006-06-12 11:42:33
|
Also, in case you lost the link, you might want to look at the Win32 bug and see if you can build the later versions from CVS. We don't have any developers on Windows, so there really hasn't been anyone that's been able to test it for us. I tried myself a couple of weeks ago, but I couldn't figure even get MinGW working. :( Link - http://bugzilla.gnome.org/show_bug.cgi?id=339270 Some patches may not apply cleanly due to some possible changes in the build files since the last time those patches were diffed against, but I presume it shouldn't be too difficult for you to apply them manually. Good luck, Regards, Rem On 6/12/06, Mehdi Rabah <meh...@gm...> wrote: > > Thanks for this quick answer > > > On 6/12/06, Remy Suen <rem...@gm...> wrote: > > > > Looking at my file from CVS, it appears that it still throws that > > RuntimeException. I don't know when that will be implemented. > > > > Regards, > > Rem > > > > On 6/12/06, Mehdi Rabah < meh...@gm...> wrote: > > > > > Hi, > > > > I tried to use the undocumented class for the drag & drop > > TreeDragSourceListener and I get this : > > > > Exception in thread "main" java.lang.RuntimeException: Not yet > > implemented > > at org.gnu.gtk.ListStore.setDragSourceListener (ListStore.java) > > > > I may be using older versions of java gnome because I work on win XP, > > but I wanted to ask if this feature > > have been added to the most recent versions ? > > > > Regards, > > --- > > Mehdi > > > > > > > > > > _______________________________________________ > > java-gnome-developer mailing list > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > > > > |
From: Mehdi R. <meh...@gm...> - 2006-06-12 11:25:31
|
Thanks for this quick answer On 6/12/06, Remy Suen <rem...@gm...> wrote: > > Looking at my file from CVS, it appears that it still throws that > RuntimeException. I don't know when that will be implemented. > > Regards, > Rem > > On 6/12/06, Mehdi Rabah <meh...@gm...> wrote: > > > Hi, > > I tried to use the undocumented class for the drag & drop > TreeDragSourceListener and I get this : > > Exception in thread "main" java.lang.RuntimeException: Not yet implemented > at org.gnu.gtk.ListStore.setDragSourceListener (ListStore.java) > > I may be using older versions of java gnome because I work on win XP, but > I wanted to ask if this feature > have been added to the most recent versions ? > > Regards, > --- > Mehdi > > > > > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > |
From: Mehdi R. <meh...@gm...> - 2006-06-12 11:21:19
|
Hi, I tried to use the undocumented class for the drag & drop TreeDragSourceListener and I get this : Exception in thread "main" java.lang.RuntimeException: Not yet implemented at org.gnu.gtk.ListStore.setDragSourceListener(ListStore.java) I may be using older versions of java gnome because I work on win XP, but I wanted to ask if this feature have been added to the most recent versions ? Regards, --- Mehdi |
From: Andrew C. <an...@op...> - 2006-06-10 05:37:34
|
On Wed, 2006-06-07 at 09:04 +0200, Mehdi Rabah wrote: > In fact I wanted to know how do you choose and get this > blah_Object_DataColumn. The Listener that I use is in a class in a > different package (it contains a lot of code). I can make the two > class aware of each others and write getters, but... ... or you could add a parameter to your concrete implementation of the Listener and pass the object in that way. Just a thought. > > Which is the method to use to get this array? I didn't find it. You could use TreeIter's getModel() give you the underlying TreeModel - your ListStore or TreeStore presumably. From there you could use ListStore.getDataColumn(int)... http://java-gnome.sourceforge.net/docs/javadoc/org/gnu/gtk/ListStore.html#getDataColumn(int) Sometimes people just keep a reference to the array they feed to ListStore's constructor around and use that. I prefer to keep references to the individual DataColumnWhatevers as it reduces the casting hassle. > In fact my real problem is not to get the columns, it is to know which > is the dataColumn behind the TreeViewColumn clicked (it's the title > of my mail ^^) I want to know the cell (x,y) clicked Ah. That's a bigger problem. GTK's TreeViews are not spreadsheets, although the alternating shading in both dimensions might give that impression. They're more like square datatables as you might find in an RDBMS - columns specify data types, and then rows enumerate the data itself. > - I have the TreeIter (x) and I want the DataColumn (y). > I only have the TreeViewColumn (y but for view, not data), how to get > the DataColumn behind this ?? As such, a click event does not "go" to a DataColumn, for two reasons. One is that the event goes to the entire row (the row is selected; the row is activated, whichever). Note that that's not "selects all the columns Ctrl-A style, but just that the row, as a single atomic object, is selected|activated. The other reason is that in an MVC paradigm (which the TreeView/TreeModel code implements), the "click" doesn't hit the DataColumns of the model. It hits a piece of the presented UI, ie in your TreeView widget. You then have to ask the event for an TreeIter which points you at which row of data in the underlying square TreeModel (ie ListStore) that event corresponds to. You then just read off whichever columns are of interest to you. AfC Sydney -- Andrew Frederick Cowie Managing Director Operational Dynamics Consulting Pty Ltd Australia: Office 02 9977 6866, Mobile 04 1079 6725 Management Consultants specializing in strategy, organizational architecture, procedures to survive change, and performance hardening for the people and systems behind the mission critical enterprise. http://www.operationaldynamics.com/ |
From: Andrew C. <an...@op...> - 2006-06-09 10:57:56
|
On Thu, 2006-06-08 at 15:31 +0000, Remy Suen wrote: > I think this is what Glade is doing in terms of adding a > MenuToolButton into a ToolBar. I've found in the past that GTK and Glade in particular does some unexpected things in order to achieve the results we take for granted. ToggleToolButtons, for example, are incredibly convoluted - partly so of what Glade creates, and partly because of how GTK maps them. If someone needs more details about them I can point you to the xseq code that manipulates them for buttons. A more mundane example is a "simple" stock button like OK. In actuality, GTK takes the stock button request and forms an Image plunks the OK pixbuf into it, then forms a Label, plunks "Ok" into it, and then makes an HBox, packs the Image and Label into the HBox, and then stuffs the HBox into the Button. Sometimes, after much hair-pulling, I've found myself rendering something, and then calling the Widget's getChildren() method, then walking the Widgets returned, and so on down until I learned what the heck was in there. Usually you can get some insight by reading the .glade file. Just pull it up in a nice syntax highlighting editor, and look at the families of widgets it has created. [Keep in mind that GTK could further complicate things at runtime] AfC Sydney |
From: Andrew C. <an...@op...> - 2006-06-09 10:57:54
|
On Thu, 2006-06-08 at 16:24 +0200, Mehdi Rabah wrote: > Here is the versions I am using : > gtk.2.6.jar > glade2.10.jar That code is really ancient. It's over three GNOME generations old. In general, open source communities are happy to help people, but reality dictates that volunteers can only support the current release and even then it's sometimes hard to reproduce changes and/or backport fixes if the developers have moved on [incidentally, that's the rationale for the fork-late-if-at-all school of development]. It's considered helpful if you take the effort to install the most recently released code. That way if you've found a bug it's almost certain to still be extant. Otherwise, you may well be reporting problems that are long since solved. At time of writing, the current releases is glib-java 0.2.5, libgtk-java 2.8.5 and libglade-java 2.12.4 Cheers, AfC Sydney |
From: Remy S. <rem...@gm...> - 2006-06-08 15:31:50
|
It looks like the problem is related to using ToolBars since this code doesn't work. Gtk.init(null); Window window = new Window(WindowType.TOPLEVEL); ToolBar toolbar = new ToolBar(); MenuToolButton mtb = new MenuToolButton(""); mtb.setIconWidget(new ToolButton("gtk-apply")); toolbar.add(mtb); window.add(toolbar); window.showAll(); Gtk.main(); I think this is what Glade is doing in terms of adding a MenuToolButton into a ToolBar. This might be gtk+ specific and is not actually our problem. Regards, Rem On 6/8/06, Mehdi Rabah <meh...@gm...> wrote: > > Hi again and sorry for the two mails in less than half an hour. > > It modified your simple code to test it with glade, and this didn't work : > > > public class Test { > Test(){} > > public static void main(String[] args) throws GladeXMLException, > FileNotFoundException, IOException{ > Gtk.init(null); > LibGlade gladefile = new LibGlade("C:/test/test.glade", new > Test()); > MenuToolButton mtb = (MenuToolButton) gladefile.getWidget > ("menutoolbutton1"); > > mtb.setIconWidget(new ToolButton("gtk-apply")); > Window w = new Window(WindowType.TOPLEVEL); > > w.add(mtb); > w.showAll(); > Gtk.main(); > } > } > > Should I submit a bug report ? > > > On 6/8/06, Mehdi Rabah <meh...@gm...> wrote: > > > > Here is the versions I am using : > > gtk.2.6.jar > > glade2.10.jar > > > > The code you send works fine for me too (except I had to call Window( > > WindowType.TOPLEVEL) instead of Window()), > > but it still didn't work when I call it from a button I loaded from a > > glade file. > > > > I'm going to do further tests. > > > > > > > > On 6/8/06, Remy Suen < rem...@gm...> wrote: > > > > > > The code below works fine for me though. I am of course using CVS > > > head, but I don't really think that that is relevant in this case unless you > > > are using an older version of libgtk-java. > > > > > > Gtk.init(null); > > > MenuToolButton mtb = new MenuToolButton(""); > > > mtb.setIconWidget(new ToolButton("gtk-apply")); > > > Window w = new Window(); > > > w.add(mtb); > > > w.showAll(); > > > Gtk.main(); > > > > > > Can you see if that works for you? Maybe your problem is > > > Glade-specific. > > > > > > Regards, > > > Rem > > > > > > > > > On 6/8/06, Mehdi Rabah < meh...@gm...> wrote: > > > > > > > > Hi Remy, > > > > > > > > I solved my problem by calling : > > > > - MenuToolButton.setStockId("gtk-cancel") > > > > - with MenuTooButton.setLabel("A different label from the > > > > standard"); > > > > > > > > Even if I didn't manage to reproduce the errors from the > > > > MenuToolButton.setIconWidget(new ToolButton("gtk-cancel")) method, > > > > it still didn't work to show an icon. > > > > If someone can explain me a little what it's for I can write it in > > > > the doc. > > > > > > > > Regards, > > > > Mehdi > > > > > > > > > > > > On 6/8/06, Remy Suen <rem...@gm... > wrote: > > > > > > > > > > Mehdi, could you file a bug about this if it is consistently > > > > > reproducible at bugzilla.gnome.org? Also, you are using a fairly > > > > > recent version of libgtk-java like 2.8.3, 2.8.4, or 2.8.5, right? > > > > > > > > > > Regards, > > > > > Rem > > > > > > > > > > On 6/6/06, Mehdi Rabah < meh...@gm...> wrote: > > > > > > > > > > > Hi again, > > > > > > > > > > I tried something like this : > > > > > > > > > > MenuToolButton menuButton = /* loaded from glade file */ > > > > > menuButton.setIconWidget(new ToolButton("gtk-apply")); > > > > > > > > > > to change the icon of a MenuToolButton, and it didn't work. > > > > > > > > > > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_get_data: > > > > > assertion `G_IS_OBJECT (object)' failed > > > > > (java-gnome:3524): GLib-GObject-CRITICAL **: > > > > > g_object_set_data_full: assertion `G_IS_OBJECT (object)' failed > > > > > > > > > > Someone can help ? I can say that I have read the doc since there > > > > > is no doc for this class :-) > > > > > I think the paramater of the constructor of ToolButton is not good > > > > > but I don't know what to use. > > > > > > > > > > > > > > > Thanks in advance, > > > > > -- > > > > > Mehdi R. > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > java-gnome-developer mailing list > > > > > > > > > > jav...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > java-gnome-developer mailing list > > > > > jav...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > > > > > > > > > > > > > > > > > > > > |
From: Mehdi R. <meh...@gm...> - 2006-06-08 14:29:45
|
Hi again and sorry for the two mails in less than half an hour. It modified your simple code to test it with glade, and this didn't work : public class Test { Test(){} public static void main(String[] args) throws GladeXMLException, FileNotFoundException, IOException{ Gtk.init(null); LibGlade gladefile = new LibGlade("C:/test/test.glade", new Test()); MenuToolButton mtb = (MenuToolButton) gladefile.getWidget ("menutoolbutton1"); mtb.setIconWidget(new ToolButton("gtk-apply")); Window w = new Window(WindowType.TOPLEVEL); w.add(mtb); w.showAll(); Gtk.main(); } } Should I submit a bug report ? On 6/8/06, Mehdi Rabah <meh...@gm...> wrote: > > Here is the versions I am using : > gtk.2.6.jar > glade2.10.jar > > The code you send works fine for me too (except I had to call Window( > WindowType.TOPLEVEL) instead of Window()), > but it still didn't work when I call it from a button I loaded from a > glade file. > > I'm going to do further tests. > > > > On 6/8/06, Remy Suen <rem...@gm...> wrote: > > > > The code below works fine for me though. I am of course using CVS head, > > but I don't really think that that is relevant in this case unless you are > > using an older version of libgtk-java. > > > > Gtk.init(null); > > MenuToolButton mtb = new MenuToolButton(""); > > mtb.setIconWidget(new ToolButton("gtk-apply")); > > Window w = new Window(); > > w.add(mtb); > > w.showAll(); > > Gtk.main(); > > > > Can you see if that works for you? Maybe your problem is Glade-specific. > > > > Regards, > > Rem > > > > > > On 6/8/06, Mehdi Rabah < meh...@gm...> wrote: > > > > > > Hi Remy, > > > > > > I solved my problem by calling : > > > - MenuToolButton.setStockId("gtk-cancel") > > > - with MenuTooButton.setLabel("A different label from the standard"); > > > > > > Even if I didn't manage to reproduce the errors from the > > > MenuToolButton.setIconWidget(new ToolButton("gtk-cancel")) method, it > > > still didn't work to show an icon. > > > If someone can explain me a little what it's for I can write it in the > > > doc. > > > > > > Regards, > > > Mehdi > > > > > > > > > On 6/8/06, Remy Suen <rem...@gm... > wrote: > > > > > > > > Mehdi, could you file a bug about this if it is consistently > > > > reproducible at bugzilla.gnome.org? Also, you are using a fairly > > > > recent version of libgtk-java like 2.8.3, 2.8.4, or 2.8.5, right? > > > > > > > > Regards, > > > > Rem > > > > > > > > On 6/6/06, Mehdi Rabah < meh...@gm...> wrote: > > > > > > > > > Hi again, > > > > > > > > I tried something like this : > > > > > > > > MenuToolButton menuButton = /* loaded from glade file */ > > > > menuButton.setIconWidget(new ToolButton("gtk-apply")); > > > > > > > > to change the icon of a MenuToolButton, and it didn't work. > > > > > > > > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_get_data: > > > > assertion `G_IS_OBJECT (object)' failed > > > > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_set_data_full: > > > > assertion `G_IS_OBJECT (object)' failed > > > > > > > > Someone can help ? I can say that I have read the doc since there is > > > > no doc for this class :-) > > > > I think the paramater of the constructor of ToolButton is not good > > > > but I don't know what to use. > > > > > > > > > > > > Thanks in advance, > > > > -- > > > > Mehdi R. > > > > > > > > > > > > > > > > _______________________________________________ > > > > java-gnome-developer mailing list > > > > > > > > jav...@li... > > > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > java-gnome-developer mailing list > > > > jav...@li... > > > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > > > > > > > > > > > > > |
From: Mehdi R. <meh...@gm...> - 2006-06-08 14:24:15
|
Here is the versions I am using : gtk.2.6.jar glade2.10.jar The code you send works fine for me too (except I had to call Window( WindowType.TOPLEVEL) instead of Window()), but it still didn't work when I call it from a button I loaded from a glade file. I'm going to do further tests. On 6/8/06, Remy Suen <rem...@gm...> wrote: > > The code below works fine for me though. I am of course using CVS head, > but I don't really think that that is relevant in this case unless you are > using an older version of libgtk-java. > > Gtk.init(null); > MenuToolButton mtb = new MenuToolButton(""); > mtb.setIconWidget(new ToolButton("gtk-apply")); > Window w = new Window(); > w.add(mtb); > w.showAll(); > Gtk.main(); > > Can you see if that works for you? Maybe your problem is Glade-specific. > > Regards, > Rem > > > On 6/8/06, Mehdi Rabah <meh...@gm...> wrote: > > > > Hi Remy, > > > > I solved my problem by calling : > > - MenuToolButton.setStockId("gtk-cancel") > > - with MenuTooButton.setLabel("A different label from the standard"); > > > > Even if I didn't manage to reproduce the errors from the > > MenuToolButton.setIconWidget(new ToolButton("gtk-cancel")) method, it > > still didn't work to show an icon. > > If someone can explain me a little what it's for I can write it in the > > doc. > > > > Regards, > > Mehdi > > > > > > On 6/8/06, Remy Suen <rem...@gm... > wrote: > > > > > > Mehdi, could you file a bug about this if it is consistently > > > reproducible at bugzilla.gnome.org? Also, you are using a fairly > > > recent version of libgtk-java like 2.8.3, 2.8.4, or 2.8.5, right? > > > > > > Regards, > > > Rem > > > > > > On 6/6/06, Mehdi Rabah < meh...@gm...> wrote: > > > > > > > Hi again, > > > > > > I tried something like this : > > > > > > MenuToolButton menuButton = /* loaded from glade file */ > > > menuButton.setIconWidget(new ToolButton("gtk-apply")); > > > > > > to change the icon of a MenuToolButton, and it didn't work. > > > > > > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_get_data: > > > assertion `G_IS_OBJECT (object)' failed > > > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_set_data_full: > > > assertion `G_IS_OBJECT (object)' failed > > > > > > Someone can help ? I can say that I have read the doc since there is > > > no doc for this class :-) > > > I think the paramater of the constructor of ToolButton is not good but > > > I don't know what to use. > > > > > > > > > Thanks in advance, > > > -- > > > Mehdi R. > > > > > > > > > > > > _______________________________________________ > > > java-gnome-developer mailing list > > > > > > jav...@li... > > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > java-gnome-developer mailing list > > > jav...@li... > > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > > > > > > > |
From: Adam J. <ajo...@re...> - 2006-06-08 14:14:24
|
Breizh Micro Services wrote: > Hi Everybody ! > > I am trying to use a DrawingArea but I do not know how to. Is there any > documentation about it somewhere ? > This the code I am trying > > int width,height; > org.gnu.gdk.Window GdkWindow = drawingarea.getParentWindow(); > width = GdkWindow.getWidth(); > height = GdkWindow.getHeight(); > GdkWindow.drawLine(0,0,100,100); > > drawingarea.setBackgroundColor(StateType.ACTIVE,Color.BLACK); > drawingarea.show(); > window.showAll(); > > But there is nothing to display. What's wrong ? > > Thanks > Fanch. > > > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > You're going to need to attach an ExposeListener to the Drawing area and do the drawing in there. You'll also need to check to make sure that the event isn't of type NO_EXPOSE. Something like the following should work: drawingArea.addListener(new ExposeListener(){ public boolean exposeEvent(ExposeEvent event){ if(event.isOfType(ExposeEvent.Type.NO_EXPOSE)){ return false; } // Do your drawing here } }); hope this helps :) |
From: Remy S. <rem...@gm...> - 2006-06-08 14:13:03
|
The code below works fine for me though. I am of course using CVS head, but I don't really think that that is relevant in this case unless you are using an older version of libgtk-java. Gtk.init(null); MenuToolButton mtb = new MenuToolButton(""); mtb.setIconWidget(new ToolButton("gtk-apply")); Window w = new Window(); w.add(mtb); w.showAll(); Gtk.main(); Can you see if that works for you? Maybe your problem is Glade-specific. Regards, Rem On 6/8/06, Mehdi Rabah <meh...@gm...> wrote: > > Hi Remy, > > I solved my problem by calling : > - MenuToolButton.setStockId("gtk-cancel") > - with MenuTooButton.setLabel("A different label from the standard"); > > Even if I didn't manage to reproduce the errors from the > MenuToolButton.setIconWidget(new ToolButton("gtk-cancel")) method, it > still didn't work to show an icon. > If someone can explain me a little what it's for I can write it in the > doc. > > Regards, > Mehdi > > > On 6/8/06, Remy Suen <rem...@gm...> wrote: > > > > Mehdi, could you file a bug about this if it is consistently > > reproducible at bugzilla.gnome.org? Also, you are using a fairly recent > > version of libgtk-java like 2.8.3, 2.8.4, or 2.8.5, right? > > > > Regards, > > Rem > > > > On 6/6/06, Mehdi Rabah < meh...@gm...> wrote: > > > > > Hi again, > > > > I tried something like this : > > > > MenuToolButton menuButton = /* loaded from glade file */ > > menuButton.setIconWidget(new ToolButton("gtk-apply")); > > > > to change the icon of a MenuToolButton, and it didn't work. > > > > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_get_data: > > assertion `G_IS_OBJECT (object)' failed > > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_set_data_full: > > assertion `G_IS_OBJECT (object)' failed > > > > Someone can help ? I can say that I have read the doc since there is no > > doc for this class :-) > > I think the paramater of the constructor of ToolButton is not good but I > > don't know what to use. > > > > > > Thanks in advance, > > -- > > Mehdi R. > > > > > > > > _______________________________________________ > > java-gnome-developer mailing list > > > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > > > > > > > > > _______________________________________________ > > java-gnome-developer mailing list > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > > |
From: Mehdi R. <meh...@gm...> - 2006-06-08 11:35:11
|
Hi Remy, I solved my problem by calling : - MenuToolButton.setStockId("gtk-cancel") - with MenuTooButton.setLabel("A different label from the standard"); Even if I didn't manage to reproduce the errors from the MenuToolButton.setIconWidget(new ToolButton("gtk-cancel")) method, it still didn't work to show an icon. If someone can explain me a little what it's for I can write it in the doc. Regards, Mehdi On 6/8/06, Remy Suen <rem...@gm...> wrote: > > Mehdi, could you file a bug about this if it is consistently reproducible > at bugzilla.gnome.org? Also, you are using a fairly recent version of > libgtk-java like 2.8.3, 2.8.4, or 2.8.5, right? > > Regards, > Rem > > On 6/6/06, Mehdi Rabah <meh...@gm...> wrote: > > > Hi again, > > I tried something like this : > > MenuToolButton menuButton = /* loaded from glade file */ > menuButton.setIconWidget(new ToolButton("gtk-apply")); > > to change the icon of a MenuToolButton, and it didn't work. > > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_get_data: assertion > `G_IS_OBJECT (object)' failed > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_set_data_full: > assertion `G_IS_OBJECT (object)' failed > > Someone can help ? I can say that I have read the doc since there is no > doc for this class :-) > I think the paramater of the constructor of ToolButton is not good but I > don't know what to use. > > > Thanks in advance, > -- > Mehdi R. > > > > _______________________________________________ > java-gnome-developer mailing list > > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > |
From: Remy S. <rem...@gm...> - 2006-06-08 11:09:23
|
Mehdi, could you file a bug about this if it is consistently reproducible at bugzilla.gnome.org? Also, you are using a fairly recent version of libgtk-java like 2.8.3, 2.8.4, or 2.8.5, right? Regards, Rem On 6/6/06, Mehdi Rabah <meh...@gm...> wrote: > > Hi again, > > I tried something like this : > > MenuToolButton menuButton = /* loaded from glade file */ > menuButton.setIconWidget(new ToolButton("gtk-apply")); > > to change the icon of a MenuToolButton, and it didn't work. > > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_get_data: assertion > `G_IS_OBJECT (object)' failed > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_set_data_full: > assertion `G_IS_OBJECT (object)' failed > > Someone can help ? I can say that I have read the doc since there is no > doc for this class :-) > I think the paramater of the constructor of ToolButton is not good but I > don't know what to use. > > > Thanks in advance, > -- > Mehdi R. > > > > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > |
From: Breizh M. S. <fra...@bm...> - 2006-06-08 09:21:31
|
Hi Everybody ! I am trying to use a DrawingArea but I do not know how to. Is there any documentation about it somewhere ? This the code I am trying int width,height; org.gnu.gdk.Window GdkWindow = drawingarea.getParentWindow(); width = GdkWindow.getWidth(); height = GdkWindow.getHeight(); GdkWindow.drawLine(0,0,100,100); drawingarea.setBackgroundColor(StateType.ACTIVE,Color.BLACK); drawingarea.show(); window.showAll(); But there is nothing to display. What's wrong ? Thanks Fanch. |
From: Mehdi R. <meh...@gm...> - 2006-06-08 02:43:38
|
Hi again, I tried something like this : MenuToolButton menuButton = /* loaded from glade file */ menuButton.setIconWidget(new ToolButton("gtk-apply")); to change the icon of a MenuToolButton, and it didn't work. (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_set_data_full: assertion `G_IS_OBJECT (object)' failed Someone can help ? I can say that I have read the doc since there is no doc for this class :-) I think the paramater of the constructor of ToolButton is not good but I don't know what to use. Thanks in advance, -- Mehdi R. |
From: Mehdi R. <meh...@gm...> - 2006-06-07 20:40:49
|
Hi everyone, I have seen that I didn't CC the mail to the list. Since I'm always stuck I'll appreciate any help ^^ ---------- Forwarded message ---------- From: Mehdi Rabah <meh...@gm...> Date: Jun 6, 2006 9:59 AM Subject: Re: [Java-gnome-developer] [TreeView] How to know which DataColumn is used by a TreeViewColumn ? To: Andrew Cowie <an...@op...> Hi Andrew, > view.addListener(new TreeViewListener() { > public void treeViewEvent(TreeViewEvent event) { > if (event.getType() == TreeViewEvent.Type.ROW_ACTIVATED) { > TreeIter pointer = event.getTreeIter(); > Blah b = (Blah) model.getValue(pointer, > blahObject_DataColumn); In fact I wanted to know how do you choose and get this blah_Object_DataColumn. The Listener that I use is in a class in a different package (it contains a lot of code). I can make the two class aware of each others and write getters, but... > > But to get a value with the ListStore.getValue() I also need the > > DataColumn behind the TreeViewColumn, and I don't know how to get it. > > The bad way to do it is to get ask the TreeViewEvent for the TreeModel > and ask the TreeModel for the DataColumn[], and then for the 5th > DataColumn, say dataColArry[4] or whatever. Which is the method to use to get this array? I didn't find it. A much better way to do it is to have a field for each DataColumn as > private members of your class. Then you've got all the DataColumns > available by name, and you just use them. > In fact my real problem is not to get the columns, it is to know which is the dataColumn behind the TreeViewColumn clicked (it's the title of my mail ^^) I want to know the cell (x,y) clicked - I have the TreeIter (x) and I want the DataColumn (y). I only have the TreeViewColumn (y but for view, not data), how to get the DataColumn behind this ?? |
From: Mehdi R. <meh...@gm...> - 2006-06-07 20:05:32
|
Hi again, I tried something like this : MenuToolButton menuButton = /* loaded from glade file */ menuButton.setIconWidget(new ToolButton("gtk-apply")); to change the icon of a MenuToolButton, and it didn't work. (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_set_data_full: assertion `G_IS_OBJECT (object)' failed Someone can help ? I can say that I have read the doc since there is no doc for this class :-) I think the paramater of the constructor of ToolButton is not good but I don't know what to use. Thanks in advance, -- Mehdi R. |
From: Andrew C. <an...@op...> - 2006-06-06 06:56:43
|
On Mon, 2006-06-05 at 17:32 +0200, Mehdi Rabah wrote: > I'm trying to get the value of a cell after a double-click ^^^^^^^^^^^^^^^^^^^ For an activate, you just ask the event for the TreeIter that goes with it. We do something like this: view.addListener(new TreeViewListener() { public void treeViewEvent(TreeViewEvent event) { if (event.getType() == TreeViewEvent.Type.ROW_ACTIVATED) { TreeIter pointer = event.getTreeIter(); Blah b = (Blah) model.getValue(pointer, blahObject_DataColumn); /* do something with b */ } } }); To see this in context, refer to [1]. > But to get a value with the ListStore.getValue() I also need the > DataColumn behind the TreeViewColumn, and I don't know how to get it. The bad way to do it is to get ask the TreeViewEvent for the TreeModel and ask the TreeModel for the DataColumn[], and then for the 5th DataColumn, say dataColArry[4] or whatever. A much better way to do it is to have a field for each DataColumn as private members of your class. Then you've got all the DataColumns available by name, and you just use them. As with all of UI programming, variable naming pretty quickly becomes a problem. If you look at lines 61-119 of the above source file (or follow [2]), you'll see how we handle it. Oh - if for whatever reason TreeView{Listener,Event} isn't what you want, then see also TreeSelection{Listener,Event} AfC Sydney [1]: http://research.operationaldynamics.com/source/darcsweb/?r=objective;a=headblob;f=/src/accounts/ui/TransactionListView.java#l258 [2]: http://research.operationaldynamics.com/source/darcsweb/?r=objective;a=headblob;f=/src/accounts/ui/TransactionListView.java#l56 -- 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: Mehdi R. <meh...@gm...> - 2006-06-06 02:58:45
|
Hi everybody, I'm trying to get the value of a cell after a double-click in a TreeView where the model is a ListStore. I have a class which implements TreeViewListener and from within it, the event parameter can give me the TreeViewColumn and a TreeIter, and even the TreeView (thus the ListStore). But to get a value with the ListStore.getValue() I also need the DataColumn behind the TreeViewColumn, and I don't know how to get it. So, which functions do I have to use ? Any help is appreciated, --- Mehdi |
From: Andrew C. <ca...@re...> - 2006-05-30 15:24:54
|
Andrew Cowie wrote: > We cut a release of the java-gnome libraries today, with the set > collectively referred to as java-gnome 2.14.1, comprising > > glib-java 0.2.5, > cairo-java 1.0.4, > libgtk-java 2.8.5, > libgnome-java 2.12.3, > libglade-java 2.12.4, and > libgconf-java 2.12.3 > Andrew, Team, great effort by all! Andrew PS: What about libvte-java :-) |
From: Andrew C. <an...@op...> - 2006-05-29 06:08:16
|
We cut a release of the java-gnome libraries today, with the set collectively referred to as java-gnome 2.14.1, comprising glib-java 0.2.5, cairo-java 1.0.4, libgtk-java 2.8.5, libgnome-java 2.12.3, libglade-java 2.12.4, and libgconf-java 2.12.3 You can download them from ftp.gnome.org There were fixes to the autoconf macros in glib-java which apply to everything, so if you care about those changes, you'll need to upgrade all your libs. Otherwise, the bulk of the improvements were, as ever, in libgtk-java. Notices: 1) Assuming the above set behaves, we will make CVS branches and further revisions to these releases will be done on stable branches. Any future releases from the stable branches will be in the java-gnome 2.14.x series. 2) org.gnu.glib will be moving out of libgtk-java into glib-java soon. If we do the job right, you shouldn't actually notice, seeing as how you have to have glib0.2.jar on your CLASSPATH anyway. 3) It's high time we cleaned up some of our mess; anything marked deprecated will probably disappear in the next release. And internal methods are subject to change, even if marked public. AfC Sydney -- Andrew Frederick Cowie Managing Director Operational Dynamics Consulting Pty Ltd http://www.operationaldynamics.com/ We are Management Consultants specializing in strategy, organizational architecture, procedures to survive change, and performance hardening for the people and systems behind the mission critical enterprise. We work with clients worldwide. Contact me as is convenient to you: Sydney +61 2 9977 6866 New York +1 646 472 5054 Toronto +1 416 848 6072 London +44 207 1019201 |
From: Andrew C. <an...@op...> - 2006-05-18 04:46:29
|
On Wed, 2006-05-17 at 15:18 +0200, Søren Mathiasen wrote: > It could be cool to have ebuild, rpm, debs etc. ready after each relase, > or is that up to the distribution maintainers to do that. It is most certainly up to the distros to do that. It really helps, however, when active users on a given distribution to encourage their distro's developers to do the package upgrade work when necessary. Nothing happens for free; everything improves when we all chip in. > Or is it just me that is too lazy, and don't wanna hack around too > much to get java-gnome to work {shrug} we release when we have a reason to. When there's a concentration of enthusiasm and people are fixing bugs, then I'm happy to do the work to push them out the door. We were waiting for a bunch of things to be cleared up before we cut java-gnome 2.14.1. See bugzilla, http://bugzilla.gnome.org/browse.cgi?product=java-gnome and follow the "2.14.1" link. Nothing has happened for about a week, though so I guess we'll cut a release this weekend. If you have a bug you want resolved or a patch you want committed, now is the time. AfC Sydney |
From: M. <li...@so...> - 2006-05-17 13:17:45
|
Ok, will do :) Is there a procedure in the build team to make packages available after each release. It could be cool to have ebuild, rpm, debs etc. ready after each relase, or is that up to the distribution maintainers to do that. I think we could make the java-gnome developer base somewhat larger if we had packages available as a part of the release cycle. Or is it just me that is too lazy, and don't wanna hack around too much to get java-gnome to work :) Cheers, Soren On Wed, 2006-05-17 at 23:06 +1000, Andrew Cowie wrote: > On Tue, 2006-05-16 at 09:45 +0200, S=F8ren Mathiasen wrote: >=20 > > anyone got java-gnome 2.14.0 ebuilds for gentoo ?? >=20 > Josh did a pretty good job of fixing things a few months ago. A simple > rev-bump of the java-gnome 2.12.3 ebuilds should do the trick. >=20 > You might want to pop by #gentoo-java and politely ask the gents there > to bump the ebuilds for you, but it's easy enough to do in your local > overlay. >=20 > AfC > Sydney >=20 >=20 >=20 >=20 > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer >=20 |
From: Andrew C. <an...@op...> - 2006-05-17 13:06:31
|
On Tue, 2006-05-16 at 09:45 +0200, Søren Mathiasen wrote: > anyone got java-gnome 2.14.0 ebuilds for gentoo ?? Josh did a pretty good job of fixing things a few months ago. A simple rev-bump of the java-gnome 2.12.3 ebuilds should do the trick. You might want to pop by #gentoo-java and politely ask the gents there to bump the ebuilds for you, but it's easy enough to do in your local overlay. AfC Sydney |
From: M. <li...@so...> - 2006-05-16 07:45:19
|
Hi, anyone got java-gnome 2.14.0 ebuilds for gentoo ?? Regards, Soren |