1. EuGTK: GtkBox vs GtkHBox, GtkVBox

It used to be GtkHBox and GtkVBox. Now it's just GtkBox. What's with that? How can I tell it to make the boxes horizontal or vertical?

new topic     » topic index » view message » categorize

2. Re: EuGTK: GtkBox vs GtkHBox, GtkVBox

Found it.

hbox = create(GtkBox,0) -- is horizontal 
vbox = create(GtkBox,1) -- is vertical 
new topic     » goto parent     » topic index » view message » categorize

3. Re: EuGTK: GtkBox vs GtkHBox, GtkVBox

That kind of change was done on several of the GTK widgets; instead of having separate horiz and vert objects, they now make them a part of the GtkOrientable class, where a 1 = vert, 0 = horiz.

Since EuGTK defaults undeclared parameters to 0, if you don't specify anything, you'll get the horiz version of whatever control you are creating. I suppose it is a bit confusing when you don't see the parameter. Perhaps I should add the GTK_ORIENTATION_HORIZONTAL or GTK_ORIENTATION_VERTICAL parameter to the demos to make this more apparent. But that's a lot of extra typing. I hate cluttered code. When it begins to look like C, I start over...

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu