Coder Social home page Coder Social logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 4, 2024
Actually even though WIDGET_HBOX and WIDGET_VBOX are being created with a 
spacing of 5 hardcoded, their parent class GtkBox has a spacing property and so 
spacing="value" already works :)

Original comment by [email protected] on 23 Jun 2011 at 10:33

  • Changed state: Done

from gtkdialog.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 4, 2024
Hmm, this then means that a WIDGET_HBOX and WIDGET_VBOX will always have a 
spacing of 5 even if GtkBox spacing="0" and the user wants the same for the 
GtkHbox and GtkVbox. 

I've just tested this by hardcoding the spacing to 0 and things close up which 
is useful, so I'll leave this open. To deal with this I'll have to make a 
custom attribute whose name doesn't conflict with anything else. Maybe I should 
investigate any other widgets with hardcoded spacing first before I come up 
with a name.

Original comment by [email protected] on 23 Jun 2011 at 10:59

  • Changed state: New

from gtkdialog.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 4, 2024
I've just noticed that hboxes (and now vboxes) in create_button are hardcoding 
spacing to 5.

Original comment by [email protected] on 4 Jul 2011 at 5:03

from gtkdialog.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 4, 2024
The "spacing" property belongs to GtkBox and this appears to be the spacing 
property within gtk_vbox_new(gboolean homogeneous, gint spacing), so regarding 
these two widgets, there's nothing to do there.

I have just created a custom tag attribute "margin" to set the border_width 
around the hbox, vbox and window containers and I saw that the frame widget's 
border_width is being hardcoded to 5, but the frame doesn't accept tag 
attributes and can't either because it uses all of the space within the tag for 
the label!

Original comment by [email protected] on 24 Jul 2011 at 8:19

from gtkdialog.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 4, 2024
Ah, hang on ;) automaton.c:3034 is creating a vbox with spacing 5, then setting 
its border_width to 5, then packing all of the widgets inside it and then 
placing the vbox inside the frame. Therefore the frame widget is a GtkFrame 
containing a GtkVbox. Interesting.

Original comment by [email protected] on 24 Jul 2011 at 10:02

from gtkdialog.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 4, 2024
"margin" is now deprecated as I've fixed the "border-width" bug and that now 
works, so currently the only issue remaining here is the flawed frame widget.

Original comment by [email protected] on 10 Aug 2011 at 9:59

from gtkdialog.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 4, 2024
I'm investigating the frame widget and writing the widget reference and I'd say 
that a new hframe and vframe should be created to deal with the frame's design 
flaws.

Original comment by [email protected] on 5 Sep 2011 at 4:23

from gtkdialog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.