# Re: \[Patch\] Support for G\_TYPE\_VALUE\_ARRAY

**URL:** <https://www.ruby-forum.com/t/re-patch-support-for-g-type-value-array/94845>\
**Category:** Ruby-Gnome 2\
**Created:** [May 16, 2006, 2:55pm UTC](https://www.ruby-forum.com/t/re-patch-support-for-g-type-value-array/94845 "2006-05-16T14:55:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Masao\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Post date:** [May 16, 2006, 2:55pm UTC](https://www.ruby-forum.com/t/re-patch-support-for-g-type-value-array/94845/1 "2006-05-16T14:55:20Z")

</div>

Hi Sjoerd,

On Tue, 9 May 2006 23:53:08 +0200  
removed\_email\_address@domain.invalid (Sjoerd S.) wrote:

> Hi,
> 
> Attached patch adds convertions functions to and from G\_TYPE\_VALUE\_ARRAY  
> GValue’s… These are used by some gstreamer plugins.

You comment the source as “ValueArray is treated as Array”.  
And your convertion functions seems to convert GValueArray ↔   
Array(Ruby)

Then, the code below needless?  
G\_DEF\_CLASS(G\_TYPE\_VALUE\_ARRAY, “ValueArray”, mGLib);

If we don’t use GLib::ValueArray from Ruby side, we shouldn’t define it.

–  
.:% Masao M.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Masao\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Post date:** [May 17, 2006, 3:43pm UTC](https://www.ruby-forum.com/t/re-patch-support-for-g-type-value-array/94845/2 "2006-05-17T15:43:44Z")

</div>

On Sun, May 14, 2006 at 07:42:59PM +0900, Masao M. wrote:

> You comment the source as “ValueArray is treated as Array”.  
> And your convertion functions seems to convert GValueArray ↔ Array(Ruby)
> 
> Then, the code below needless?  
> G\_DEF\_CLASS(G\_TYPE\_VALUE\_ARRAY, “ValueArray”, mGLib);
> 
> If we don’t use GLib::ValueArray from Ruby side, we shouldn’t define it.

Correct that code is useless. It’s basically copied it from the  
rbgobj\_strv.c 🙂

## Sjoerd

Each man is his own prisoner, in solitary confinement for life.

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
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  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![Masao\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Post date:** [May 17, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/re-patch-support-for-g-type-value-array/94845/3 "2006-05-17T16:03:11Z")

</div>

Hi,

On Wed, 17 May 2006 15:40:37 +0200  
removed\_email\_address@domain.invalid (Sjoerd S.) wrote:

> > You comment the source as “ValueArray is treated as Array”.  
> > And your convertion functions seems to convert GValueArray ↔ Array(Ruby)
> > 
> > Then, the code below needless?  
> > G\_DEF\_CLASS(G\_TYPE\_VALUE\_ARRAY, “ValueArray”, mGLib);
> > 
> > If we don’t use GLib::ValueArray from Ruby side, we shouldn’t define it.
> 
> Correct that code is useless. It’s basically copied it from the rbgobj\_strv.c 🙂

Ah, it’s my mistake.

I removed both and applied your patch to CVS.

Thanks.

–  
.:% Masao M.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
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  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)
