# GSettings implemented?

**URL:** <https://www.ruby-forum.com/t/gsettings-implemented/237203>\
**Category:** Ruby-Gnome 2\
**Created:** [October 29, 2013, 7:40pm UTC](https://www.ruby-forum.com/t/gsettings-implemented/237203 "2013-10-29T19:40:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [October 29, 2013, 7:40pm UTC](https://www.ruby-forum.com/t/gsettings-implemented/237203/1 "2013-10-29T19:40:18Z")

</div>

Hi,

in an quite old Mail from kou I saw, that GSettings as the gconf  
replacement is implemented in Gio. I searched around, but found no  
source, doc, examples or anything else. Can someone please point me to  
the right direction?

Cheers, detlef

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [October 30, 2013, 1:45pm UTC](https://www.ruby-forum.com/t/gsettings-implemented/237203/2 "2013-10-30T13:45:56Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] GSettings implemented?” on Tue, 29 Oct 2013  
19:39:13 +0100,  
Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> in an quite old Mail from kou I saw, that GSettings as the gconf  
> replacement is implemented in Gio. I searched around, but found no  
> source, doc, examples or anything else. Can someone please point me to  
> the right direction?

Unfortunately, we don’t implement it yet… :\<

We should implement Ruby/GIO2 based on  
Ruby/GObjectIntrospection. Could someone try it?

If you are interested in the challenge, please go to the  
issue:  
[Use Ruby/GObjectIntrospection for Ruby/GIO2 · Issue #199 · ruby-gnome/ruby-gnome · GitHub](https://github.com/ruby-gnome2/ruby-gnome2/issues/199)

Let’s share details about the challenge in the issue.

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [November 10, 2013, 8:06pm UTC](https://www.ruby-forum.com/t/gsettings-implemented/237203/3 "2013-11-10T20:06:53Z")

</div>

Hi,

I try to implement it. Gio::Settings is in great parts working, but for  
now only for basic data types. For complex ones I now start to put my  
hands on GLib::Variant. But with this I have some Problem direct at the  
beginning.

GVariant is an fundamental data type in GLib. So my class definition is

```
 VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(G_TYPE_VARIANT, "Variant",

```

mGLib);

but it trows

```
 ./variant-test.rb:5:in `new': abstract class (TypeError)

```

in a test before the call to rg\_initialize. In a ruby lib I would use  
type\_register in the class definition to solve this. But how do I in the  
extension? Or is this the complete wrong way?

Btw. I don’t use Introspection, but the classic way.

Cherrs detlef

Am 30.10.2013 13:44, schrieb Kouhei S.:

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [November 12, 2013, 3:13pm UTC](https://www.ruby-forum.com/t/gsettings-implemented/237203/4 "2013-11-12T15:13:19Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] GSettings implemented?” on Sun, 10 Nov  
2013 20:05:53 +0100,  
Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> but it trows
> 
> ```
> ./variant-test.rb:5:in `new': abstract class (TypeError)
> 
> ```
> 
> in a test before the call to rg\_initialize. In a ruby lib I would use  
> type\_register in the class definition to solve this. But how do I in the  
> extension? Or is this the complete wrong way?

Could you show the current your code and test? If we see  
them, we may help you.

> Btw. I don’t use Introspection, but the classic way.

We start to implement GObject Introspection based GIO:  
[https://github.com/ruby-gnome2/ruby-gnome2/tree/master/gio2-gi](https://github.com/ruby-gnome2/ruby-gnome2/tree/master/gio2-gi)

It may not work for now.

## Thanks,

kou
