After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 454248 - Allow easy indentation of a checkbox's/radio button's/expander's dependent controls
Allow easy indentation of a checkbox's/radio button's/expander's dependent co...
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-07-06 12:13 UTC by Matthew Paul Thomas (mpt)
Modified: 2018-02-10 04:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthew Paul Thomas (mpt) 2007-07-06 12:13:28 UTC
It is a fairly common GUI pattern to have one or more controls that are relevant only if a particular checkbox or radio button is selected, and to indicate this by indenting the dependent controls. For example, in Gnome's Window Preferences:

    [/] Select windows when the mouse moves over them
        [ ] Raise selected windows after an interval

In Orca's "Key Echo" preferences:

    [ ] Enable key echo
        :/: Enable alphanumeric and punctuation keys
        :/: Enable modifier keys
        ...

    [ ] Enable echo by word

And in Gnome's Network Proxy preferences:

    (*) Automatic proxy configuration
        Autoconfiguration URL: [___________________________]

Ideally, the left edge of the dependent control(s) should be exactly aligned with the left edge of the *label* of the checkbox/radiobutton/expander. In other words, the dependent controls should be indented by the width of the checkbox/radiobutton/expander, plus the width of the padding between that control and its label. Unfortunately none of the above examples get it exactly right, because the control and label widths differ by theme, and there is no easy theme-independent way to do the indentation (short of asking for indicator-size + indicator-padding and listening for theme changes, which would be excessive).

This could be fixed by adding an "indentation-level" property which can be applied either to boxes or to individual controls For sanity, it should assume that checkboxes and radio buttons have the same width and padding (perhaps by using the maximum of the two). Expanders are often wider, but exact indentation for those isn't as important.

[Thanks to Johan Dahlin for providing the technical details.]
Comment 1 Matthias Clasen 2018-02-10 04:34:10 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.