# Questions about GTK button box

**URL:** <https://www.ruby-forum.com/t/questions-about-gtk-button-box/97668>\
**Category:** Ruby-Gnome 2\
**Created:** [July 9, 2006, 10:35am UTC](https://www.ruby-forum.com/t/questions-about-gtk-button-box/97668 "2006-07-09T10:35:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laurent\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/67e7ee/32.png) [@Laurent\_J](https://www.ruby-forum.com/u/Laurent_J)\
**Post date:** [July 9, 2006, 10:35am UTC](https://www.ruby-forum.com/t/questions-about-gtk-button-box/97668/1 "2006-07-09T10:35:22Z")

</div>

I looked at the GTK VButtonBOx and HButtonBox classes today and I have a  
few question. In rbgtkvbbox.c for instance there is an ‘initialize’  
method to create a new object but I don’t see that Gtk::VButtonBox is  
declared as a subclass of Gtk::ButtonBox. Why is that?

And just for my understanding I noticed that in rbgtkbbox.c there is a  
number of methods not implemented (actaully only the set\_secondary\_child  
is). Are the other methods elsewhere or shall I assume that they still  
have to be implemented in which case I’d happy to contribute the code.

Thanks for all your help!

Laurent

* * *

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:** ![Laurent\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/67e7ee/32.png) [@Laurent\_J](https://www.ruby-forum.com/u/Laurent_J)\
**Post date:** [July 9, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/questions-about-gtk-button-box/97668/2 "2006-07-09T14:14:52Z")

</div>

On 7/9/06, Laurent J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I looked at the GTK VButtonBOx and HButtonBox classes today and I have a  
> few question. In rbgtkvbbox.c for instance there is an ‘initialize’  
> method to create a new object but I don’t see that Gtk::VButtonBox is  
> declared as a subclass of Gtk::ButtonBox. Why is that?

Inheritance is set up through reflection. Look for yourself with for  
example:

irb(main):009:0\> Gtk::VButtonBox.ancestors  
=\> [Gtk::VButtonBox, Gtk::ButtonBox, Gtk::Box, Gtk::Container,  
Gtk::Widget, Atk::Implementor, GLib::Interface, GLib::MetaInterface,  
Gtk::Object, #Class:0xb7a65354, GLib::Object, GLib::Instantiatable,  
Object, Kernel]

The documentation is also telling that:

[http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk::VButtonBox](http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk::VButtonBox)

> And just for my understanding I noticed that in rbgtkbbox.c there is a  
> number of methods not implemented (actaully only the set\_secondary\_child  
> is). Are the other methods elsewhere or shall I assume that they still  
> have to be implemented in which case I’d happy to contribute the code.

In GTK, objects have properties. Probably for making life of users  
easier, GTK defines functions which actually are setters and getters  
for properties which could also be set/get with the generic property  
accessing functions. In ruby-gnome2, the binding automatically creates  
the setters and getters methods by enumerating the properties at  
startup, thus explicitely binding the setters and getters is not  
necessary.

irb(main):015:0\> w = Gtk::VButtonBox.new  
=\> #\<Gtk::VButtonBox:0xb704a9f4 ptr=0x8293cc8\>  
irb(main):016:0\> w.layout\_style  
=\> #\<Gtk::ButtonBox::Style default-style\>

–  
Guillaume C. - [http://zarb.org/~gc/](http://zarb.org/~gc/)

* * *

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:** ![Laurent\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/67e7ee/32.png) [@Laurent\_J](https://www.ruby-forum.com/u/Laurent_J)\
**Post date:** [July 9, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/questions-about-gtk-button-box/97668/3 "2006-07-09T14:18:06Z")

</div>

> is). Are the other methods elsewhere or shall I assume that they still  
> have to be implemented in which case I’d happy to contribute the code.

Btw, if you want to contribute, check the status page; from there on,  
you can view what contributions are needed.

[http://ruby-gnome2.sourceforge.jp/hiki.cgi?Status](http://ruby-gnome2.sourceforge.jp/hiki.cgi?Status)

Also, make sure to read the documents listed in the “for developers”  
item of the front page before starting to actually contribute:

[http://ruby-gnome2.sourceforge.jp/hiki.cgi](http://ruby-gnome2.sourceforge.jp/hiki.cgi)

–  
Guillaume C. - [http://zarb.org/~gc/](http://zarb.org/~gc/)

* * *

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)
