[Gambas-devel] gtk 050120 / QT bugs
Daniel Campos
daniel.campos at ...103...
Thu Jan 20 16:42:40 CET 2005
Hi:
This is a new pre-alpha version of the GTK+ component:
- I've implemented some things like the "drop part" from dnd
- Now you have a good clipboard support
- Cursors
- Less buggy picture and image classes.
- Some new widgets: TextArea and ProgressBar.
- Some bugs fixed, but I have to rewrite some of the form deletion code,
as your application
may still crash when closing the main formulary, under still unknown
circumstances (mistery :-)).
- GTK+ seems to be able to show full color cursors, while QT translates
it to b&w, at least using X.org server.
- The "PictureMask" property from the "Form" class has been implemented,
so now allows
to create transparent forms with gtk+.
- The Huygens mission landed sucessfully on Titan :
http://www.esa.int/SPECIALS/Cassini-Huygens/SEM15Y71Y3E_0.html
---------------------------------------------------------------------------------------------------------
I've found some bugs in the gb.qt "Cursor" implementation:
1) If you execute:
...
Dim hCur As Cursor
hCur=New Cursor(Picture["myicon"])
Me.Cursor=hCur
...
You got a "1 Allocations not freed" error
2) If you execute:
...
Dim hCur As Cursor
hCur=New Cursor(Picture["myicon"],30,20)
Me.Cursor=hCur
...
And "30" and "20" are bigger that the real icon size, you got
an error from QT:
"X Error: BadMatch (invalid parameter attributes) 8
Major opcode: 93
Minor opcode: 0
Resource id: 0x300024e
X Error: BadCursor (invalid Cursor parameter) 6
Major opcode: 2
Minor opcode: 0
Resource id: 0x300024f"
This should be checked, and "if X>picture.Width then X=Picture.Width-1"
------------------------------------------------------------------------------------------------------------------------------
Regards,
D. Campos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtk-050120-gb1.9.tar.bz2
Type: application/x-bzip
Size: 45671 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20050120/46872f90/attachment.bin>
More information about the Devel
mailing list