Questions about GTK button box

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

On 7/9/06, Laurent J. [email protected] 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

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/


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

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

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


Guillaume C. - 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs