[Gambas-user] .TreeViewItem.ParentKey question

2012-07-04 Thread Bruce
Hi all,

I've been wondering (and reading QT4 documentation and gambas source)
why the ParentKey property of .TreeViewItem is read only.

Is there anything known that would prevent having it writeable?  

Reason? Because tree restructuring (prune a branch and graft it
somewhere else) in the treeview is fairly difficult (I feel) when the
depth of the selected branch is unknown.  If one could just update the
node parent, then presumeably all child nodes would just automagically
follow it.

regards
Bruce


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb3: using array of structures with dimensions unknown until runtime

2012-07-04 Thread Benoît Minisini
Le 04/07/2012 06:06, Kevin Fishburne a écrit :
> I need to create a 2D array of a structure like this:
 > ...

By the way, Kevin, did you try the jit compiler for your game?

-- 
Benoît Minisini



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ScrollView and Hovered property

2012-07-04 Thread Benoît Minisini
Le 05/07/2012 00:32, Adrien Prokopowicz a écrit :
> Hi,
> I noticed that, when entering into a ScrollView, the Hovered property is
> always false :
>
> Public Sub ScrollView1_Enter()
>
>Debug Last.Hovered
>
> End
>
> Public Sub ScrollView1_Leave()
>
>Debug Last.Hovered
>
> End
>
> ... will make :
>
> FMain.ScrollView1_Enter.14: False
> FMain.ScrollView1_Leave.20: False
>
> in any way. I haven't tried yet with other controls.
> Here is a little test project if you want.
>
> Regards,
> Adrien.
>
>

Fixed in revision #4898.

Regards,

-- 
Benoît Minisini



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] ScrollView and Hovered property

2012-07-04 Thread Adrien Prokopowicz
Hi,
I noticed that, when entering into a ScrollView, the Hovered property is
always false :

Public Sub ScrollView1_Enter()

  Debug Last.Hovered

End

Public Sub ScrollView1_Leave()

  Debug Last.Hovered

End

... will make :

FMain.ScrollView1_Enter.14: False
FMain.ScrollView1_Leave.20: False

in any way. I haven't tried yet with other controls.
Here is a little test project if you want.

Regards,
Adrien.


testGUI-0.0.1.tar.gz
Description: GNU Zip compressed data
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context

2012-07-04 Thread gambas

Comment #10 on issue 268 by emil.len...@gmail.com: Can call non-static  
_unknown from a static context
http://code.google.com/p/gambas/issues/detail?id=268

Now some more headache :)

Public Function _property() As Boolean
   Return False
End

Public Function _unknown(...) As String
   Return "hello"
End

Public Sub TestFunction()
   Print Me.uuh()
End

-> "Wanted Stream, got String", i.e. stack is corrupted.

And as you say, static unknown method called in dynamic context does not  
work yet, like it should by convention...


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context

2012-07-04 Thread gambas
Updates:
Status: Fixed

Comment #9 on issue 268 by benoit.m...@gmail.com: Can call non-static  
_unknown from a static context
http://code.google.com/p/gambas/issues/detail?id=268

OK, in revision #4897 you can use a static unknown property in a dynamic  
context.

But I don't think it works with a static unknown method called in a dynamic  
context...


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context

2012-07-04 Thread gambas
Updates:
Status: Started

Comment #8 on issue 268 by benoit.m...@gmail.com: Can call non-static  
_unknown from a static context
http://code.google.com/p/gambas/issues/detail?id=268

Revision #4896 now can call _property according to its declaration  
independently of we are in a dynamic or static context.

As for the last point, it's pending...


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb3: using array of structures with dimensions unknown until runtime

2012-07-04 Thread Emil Lenngren
As Benoît says,
Dim Normals As New Tile_Normals[TileGrid.Size, TileGrid.Size]
only gives an array where you can store references to Tile_Normals.

You also have to do:
Dim I As Integer
Dim J As Integer
For I = 0 To TileGrid.Size - 1
  For J = 0 To TileGrid.Size - 1
Normals[I, J] = New Tile_Normals
  Next
Next

Otherwise you will get "null object" errors.

/Emil

2012/7/4 Benoît Minisini 

> Le 04/07/2012 06:06, Kevin Fishburne a écrit :
> > I need to create a 2D array of a structure like this:
> >
> > Public Struct Tile_Normals
> > A[3] As Single  ' Normal for quad subsurface A.
> > B[3] As Single  ' Normal for quad subsurface B.
> > End Struct
> >
> > Dim Normals As New Tile_Normals[TileGrid.Size, TileGrid.Size]
>
> --> There Tile_Normals is used like a class, not a structure.
>
> You must initialize each element of the array with a new Tile_Normals
> object (in other words, you can use a normal class instead of a structure).
>
> Or you can use embedded array of structures:
>
> Private Normals[10, 10] As Struct Tile_Normals
>
> But then the size of the array must be known at compile time!
>
> --
> Benoît Minisini
>
>
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 265 in gambas: New connection with password causes Gambas crash.

2012-07-04 Thread gambas

Comment #12 on issue 265 by green.da...@gmail.com: New connection with  
password causes Gambas crash.
http://code.google.com/p/gambas/issues/detail?id=265

Followed all the instructions. Compiling gives a couple of errors and  
cannot complete. I have included the output.txt file for your evaluation.  
As soon as this is fixed I will try the issue again.

Attachments:
output.txt  8.0 KB


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context

2012-07-04 Thread gambas

Comment #7 on issue 268 by emil.len...@gmail.com: Can call non-static  
_unknown from a static context
http://code.google.com/p/gambas/issues/detail?id=268

Some more things:
* What should happen if _property is static but _unknown is dynamic or vice  
versa? ;) This code:

Static Public Function _property() As Boolean
End

Public Sub _unknown(...)
End

Public Sub TestFunction()
   Me.uuh = 3
End

-> Segmentation fault (The gambas stack gets corrupted)

And

Static Public Function _property() As Boolean
   Print "This is not written to stdout"
End

Public Sub _unknown(...)
   Print "This is written to stdout"
End

Public Sub TestFunction()
   Me.uuh()
End

-> i.e. _property is silently ignored, but _unknown is executed.

* _property must also be checked in about the same way when a property is  
written to:
Static Public Function _property() As Boolean
   Print "This message will not be written to stdout."
   Return True
End

Static Public Sub _unknown(...)
   Print "Not this message either"
End

Public Sub TestFunction()
   Me.uuh = 3
End

-> Shows nothing on the screen, i.e. none of _property or _unknown are  
executed, and no error message.

* In revision #4894 you cannot call a static function when having an  
object, like obj.unknown_function(), err msg "static function". But the  
convension is that static functions can actually be called even if you have  
an object. obj.known_static_function() works.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] More on overriding native classes

2012-07-04 Thread Benoît Minisini
Le 04/07/2012 07:55, Fabien Bodard a écrit :
> why if the class have the same name of an existing one you not just ignore
> the 'inherit' keyword, Benoit ?
>

Because the compiler does not know that a class with the same name 
already exists at compile time.

-- 
Benoît Minisini



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb3: using array of structures with dimensions unknown until runtime

2012-07-04 Thread Benoît Minisini
Le 04/07/2012 06:06, Kevin Fishburne a écrit :
> I need to create a 2D array of a structure like this:
>
> Public Struct Tile_Normals
> A[3] As Single  ' Normal for quad subsurface A.
> B[3] As Single  ' Normal for quad subsurface B.
> End Struct
>
> Dim Normals As New Tile_Normals[TileGrid.Size, TileGrid.Size]

--> There Tile_Normals is used like a class, not a structure.

You must initialize each element of the array with a new Tile_Normals 
object (in other words, you can use a normal class instead of a structure).

Or you can use embedded array of structures:

Private Normals[10, 10] As Struct Tile_Normals

But then the size of the array must be known at compile time!

-- 
Benoît Minisini



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb3: using array of structures with dimensions unknown until runtime

2012-07-04 Thread tobi
On Wed, 04 Jul 2012, Kevin Fishburne wrote:
> On 07/04/2012 05:42 AM, Emil Lenngren wrote:
> > When you are declaring the array by writing
> > A[3] As Single
> > you declare an inline array, i.e. NOT a reference to an array.
> > So you cannot write
> > ThatStruct.A = AnArray.
> > Instead you have to copy the contents from AnArray into A.
> >
> 
> I'm not sure how to go about copying the contents, as even this gives me 
> a null object error:
> 
> Public Struct Surface_Normal
>N As Single[]
> End Struct
> 
> Dim NormalsA As New Surface_Normal[TileGrid.Size + 2, TileGrid.Size + 2]
> NormalsA[0, 0].N[0] = 0
> 
> I spent about an hour last night trying every combination of 
> declarations and assignments I could think of, all with various errors. 
> Initially I wanted a structure so I could have a 2D array with each 
> element having an A and B vector, but now I'm searching for ANY way to 
> get it done. How can I declare a 2D array whose element is a 1D array of 
> three singles? Despite reading the docs again and again I'm not clear on 
> the syntax.
> 
> -- 
> Kevin Fishburne
> Eight Virtues
> www: http://sales.eightvirtues.com
> e-mail: sa...@eightvirtues.com
> phone: (770) 853-6271
> 
> 
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

You could have a one-dimensional Variant[] which contains other Variant[] (and 
so on n times) to
get an n-dimensional matrix...

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 263 in gambas: The TextBox will remain always in the foreground.

2012-07-04 Thread gambas

Comment #3 on issue 263 by krisztiankende: The TextBox will remain always  
in the foreground.
http://code.google.com/p/gambas/issues/detail?id=263

Yes, the problem occurs gb.gtk component, and with qb.qt4 didn't.

Both problems are very easy to reconstruct. In previous versions of Gambas  
these problems didn't exist.

The example source is attached.

Attachments:
problem_example.tar.gz  727 bytes


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb3: using array of structures with dimensions unknown until runtime

2012-07-04 Thread Kevin Fishburne
On 07/04/2012 05:42 AM, Emil Lenngren wrote:
> When you are declaring the array by writing
> A[3] As Single
> you declare an inline array, i.e. NOT a reference to an array.
> So you cannot write
> ThatStruct.A = AnArray.
> Instead you have to copy the contents from AnArray into A.
>

I'm not sure how to go about copying the contents, as even this gives me 
a null object error:

Public Struct Surface_Normal
   N As Single[]
End Struct

Dim NormalsA As New Surface_Normal[TileGrid.Size + 2, TileGrid.Size + 2]
NormalsA[0, 0].N[0] = 0

I spent about an hour last night trying every combination of 
declarations and assignments I could think of, all with various errors. 
Initially I wanted a structure so I could have a 2D array with each 
element having an A and B vector, but now I'm searching for ANY way to 
get it done. How can I declare a 2D array whose element is a 1D array of 
three singles? Despite reading the docs again and again I'm not clear on 
the syntax.

-- 
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sa...@eightvirtues.com
phone: (770) 853-6271


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 265 in gambas: New connection with password causes Gambas crash.

2012-07-04 Thread gambas

Comment #11 on issue 265 by emil.len...@gmail.com: New connection with  
password causes Gambas crash.
http://code.google.com/p/gambas/issues/detail?id=265

Google code thinks Gambas uses Google Code instead of Source Forge as code  
repository.

What you should do is read this:  
http://gambasdoc.org/help/howto/svn?v3&view and check out the latest  
revision.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 265 in gambas: New connection with password causes Gambas crash.

2012-07-04 Thread gambas

Comment #10 on issue 265 by green.da...@gmail.com: New connection with  
password causes Gambas crash.
http://code.google.com/p/gambas/issues/detail?id=265

Sorry, new at this. I'm not sure what that link means, plus it gives a 404  
error. Am I missing something?


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 263 in gambas: The TextBox will remain always in the foreground.

2012-07-04 Thread gambas
Updates:
Status: NeedsInfo
Labels: -Version Version-3.2.0

Comment #2 on issue 263 by benoit.m...@gmail.com: The TextBox will remain  
always in the foreground.
http://code.google.com/p/gambas/issues/detail?id=263

There is a problem with GTK+, that sometimes uses an X11 window for drawing  
controls (like TextBox), and sometimes does not.

Consequently, if you send a TextBox to the background, you will continue to  
see it (or part of it).

I don't know what you want to achieve exactly. Please give more details,  
and I may be able to tell you what to do to workaround that problem.

As for the CheckBox, please provide more details : a screenshot for  
example. The better of course being a project that allows me to reproduce  
the problem on my computer!


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 264 in gambas: Gambas 3.2.0 IDE not work in Ubuntu 12.10

2012-07-04 Thread gambas
Updates:
Status: WontFix

Comment #8 on issue 264 by benoit.m...@gmail.com: Gambas 3.2.0 IDE not work  
in Ubuntu 12.10
http://code.google.com/p/gambas/issues/detail?id=264

OK, so I will close the issue. We should reopen it if we get the same  
problem when the stable Ubuntu 12.10 is released.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 265 in gambas: New connection with password causes Gambas crash.

2012-07-04 Thread gambas
Updates:
Status: Started

Comment #9 on issue 265 by benoit.m...@gmail.com: New connection with  
password causes Gambas crash.
http://code.google.com/p/gambas/issues/detail?id=265

Are things better with revision #4895?


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 265 in gambas: New connection with password causes Gambas crash.

2012-07-04 Thread gambas

Comment #8 on issue 265 by green.da...@gmail.com: New connection with  
password causes Gambas crash.
http://code.google.com/p/gambas/issues/detail?id=265

Caja is the MATE file manager, based on Nautilus 2.32.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 265 in gambas: New connection with password causes Gambas crash.

2012-07-04 Thread gambas

Comment #7 on issue 265 by green.da...@gmail.com: New connection with  
password causes Gambas crash.
http://code.google.com/p/gambas/issues/detail?id=265

On my system it is using MATE terminal 1.2.1, and CAJA 1.2.1


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 265 in gambas: New connection with password causes Gambas crash.

2012-07-04 Thread gambas

Comment #6 on issue 265 by benoit.m...@gmail.com: New connection with  
password causes Gambas crash.
http://code.google.com/p/gambas/issues/detail?id=265

OK, thanks. Now can you tell me if Mate uses the standard Gnome  
applications (gnome-terminal, nautilus...) or use something else?


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 265 in gambas: New connection with password causes Gambas crash.

2012-07-04 Thread gambas

Comment #5 on issue 265 by green.da...@gmail.com: New connection with  
password causes Gambas crash.
http://code.google.com/p/gambas/issues/detail?id=265

Here is the file you requested.

Attachments:
set-output.txt  356 KB


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 265 in gambas: New connection with password causes Gambas crash.

2012-07-04 Thread gambas

Comment #4 on issue 265 by benoit.m...@gmail.com: New connection with  
password causes Gambas crash.
http://code.google.com/p/gambas/issues/detail?id=265

Can you send me the result of the "set" command run in a terminal emulator  
inside a Mate session? I think that the Gnome environment variables are  
there, but their contents has been changed to reflect the Mate desktop.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 265 in gambas: New connection with password causes Gambas crash.

2012-07-04 Thread gambas

Comment #3 on issue 265 by green.da...@gmail.com: New connection with  
password causes Gambas crash.
http://code.google.com/p/gambas/issues/detail?id=265

Unless I am mistaken, gb.desktop relies on xdg-utils to report the desktop  
currently in use. The more I dig into this the more it looks like the  
problem is more with xdg-utils not properly reporting Mate as the active  
desktop.

As a temporary workaround, if it were possible to expose the desktop.type  
property as read/write, the property could be set to "GNOME" which should  
force the system to use the gnome keyring system for saving passwords.

The importance in this is that Mate has a growing number of users as a lot  
of users do not like the direction of Gnome3 nor KDE. Mate is a  
continuation of the Gnome2 look and feel.

I will continue to look at how xdg-utils can be made to detect Mate.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb3: using array of structures with dimensions unknown until runtime

2012-07-04 Thread Emil Lenngren
When you are declaring the array by writing
A[3] As Single
you declare an inline array, i.e. NOT a reference to an array.
So you cannot write
ThatStruct.A = AnArray.
Instead you have to copy the contents from AnArray into A.

2012/7/4 Kevin Fishburne 

> On 07/04/2012 12:06 AM, Kevin Fishburne wrote:
> > I need to create a 2D array of a structure like this:
> >
> > Public Struct Tile_Normals
> > A[3] As Single  ' Normal for quad subsurface A.
> > B[3] As Single  ' Normal for quad subsurface B.
> > End Struct
> >
> > Dim Normals As New Tile_Normals[TileGrid.Size, TileGrid.Size]
> >
> > When I try to assign a value to an array element like this:
> >
> > Normals[TileGridX, TileGridY].A = Convert.Normal(P1, P2, P3)
> >
> > I get a "null object" error. While the 2D array of structures seems to
> > be created correctly, all its initial values are indeed "null". Do I
> > need to create the structure or array differently so I can properly
> > assign values to it?
> >
> > Previously I knew all the dimensions of my arrays of structures so they
> > were statically defined, but in this case I don't know the array
> > dimensions until after the program has started running. Thanks everyone.
> >
>
> One addition. I've discovered that if I publicly declare a 2D array of
> the structure it shows "bad number of dimensions" and "out of bounds"
> errors when I double-click it after creation:
>
> ' Tile grid normal structure.
> Public Struct Tile_Normals
>A As Single[]  ' Normal for quad subsurface A.
>B As Single[]  ' Normal for quad subsurface B.
> End Struct
> Public Normals[32, 32] As Struct Tile_Normals
>
> Declaring it as a 1D array it behaves normally:
>
> ' Tile grid normal structure.
> Public Struct Tile_Normals
>A As Single[]  ' Normal for quad subsurface A.
>B As Single[]  ' Normal for quad subsurface B.
> End Struct
> Public Normals[32] As Struct Tile_Normals
>
> It also doesn't make any difference if I define the structure like this:
>
> ' Tile grid normal structure.
> Public Struct Tile_Normals
>A[3] As Single  ' Normal for quad subsurface A.
>B[3] As Single  ' Normal for quad subsurface B.
> End Struct
>
> Maybe that's related to what's happening, or a separate issue?
>
> --
> Kevin Fishburne
> Eight Virtues
> www: http://sales.eightvirtues.com
> e-mail: sa...@eightvirtues.com
> phone: (770) 853-6271
>
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user