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 133423 - Need recommendation about selectable labels
Need recommendation about selectable labels
Status: RESOLVED OBSOLETE
Product: gnome-devel-docs
Classification: Applications
Component: hig
unspecified
Other All
: Normal normal
: ---
Assigned To: HIG Maintainers
HIG Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-04 18:28 UTC by Federico Mena Quintero
Modified: 2021-07-05 10:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Federico Mena Quintero 2004-02-04 18:28:31 UTC
Label widgets can be configured to allow selecting text in them
(gtk_label_set_selectable()).  The idea is that you make labels selectable
when you may want to copy&paste from them:  error messages, machine or
email addresses, etc.

By default labels are not selectable.  The HIG should have a recommendation
of when to use selectable labels; they should be used sparingly because
they are in the focus chain.
Comment 1 spark 2004-02-05 18:59:28 UTC
Currently the HIG specifies that any text within error, warning or 
information alerts should be selectable.
Comment 2 Calum Benson 2010-03-06 00:39:04 UTC
The text in GtkMessageDialogs is selectable by default, IIRC.  (Correct me if I'm wrong...)

So with my 3.x hat on, other than reminding people to make text selectable if they're crafting custom message dialogs, is there anything specific we need to say in HIG 3.x other than "anything that it would be useful to copy into another application"?
Comment 3 Federico Mena Quintero 2010-03-07 23:46:08 UTC
(In reply to comment #2)
> The text in GtkMessageDialogs is selectable by default, IIRC.  (Correct me if
> I'm wrong...)

Indeed it is!

> So with my 3.x hat on, other than reminding people to make text selectable if
> they're crafting custom message dialogs, is there anything specific we need to
> say in HIG 3.x other than "anything that it would be useful to copy into
> another application"?

That seems to be sufficient, thanks!

You may want to recommend that chunks of text that are likely to be copied should really be in the same label.  I've seen apps that have

  Foo1: blah
  Foo2: blah blah
  Foo3: blah blah blah

And each line is a separate label.  It is hard to copy all of that information, as you must do the select-copy-paste dance three times.  A multi-line label would make this much easier for the user.
Comment 4 Allan Day 2014-09-26 14:40:59 UTC
While it seems like a good idea to include this, I'm not entirely sure where it would fit into the structure of the new HIG - we don't have a generic section on "labels".
Comment 5 GNOME Infrastructure Team 2021-07-05 10:53:34 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-devel-docs/-/issues/

Thank you for your understanding and your help.