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 589562 - Make it possible to hide monitor labels
Make it possible to hide monitor labels
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Display
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 590318 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-07-24 02:19 UTC by komputes
Modified: 2011-08-25 18:42 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Monitor Identification (22.38 KB, image/png)
2009-07-24 03:21 UTC, komputes
  Details
Add ability to show and hide the monitor labels (to make the display properties capplet able to hide them when it loses focus) (2.72 KB, patch)
2011-03-17 04:15 UTC, Robert Ancell
committed Details | Review
Only show monitor labels when display applet has focus (1.97 KB, patch)
2011-03-17 04:17 UTC, Robert Ancell
committed Details | Review

Description komputes 2009-07-24 02:19:55 UTC
This is a feature request for gnome-display-properties to make the monitor identification optional and off by default. If you are unsure what the monitor identification is, I have attached a picture to explain. It may have another name but this is what I know it as.

The rationale behind this request is basic usability. Many times, people will only use the display preferences to set up an external monitor or projector for a short period of time. By not closing gnome-display-properties, the monitor identification is there constantly, and on top of every other window/menu (but below the cursor). I have seen too many presentations, with the monitor/projector was identified, to go on without reporting a feature request.

Looking at how other OSs do this, there is an Identify or Identify Monitors button which then displays the monitor number. Perhaps we should have a checkbox that turns on and off the monitor identification option.
Comment 1 komputes 2009-07-24 02:20:56 UTC
Reported downstream:
https://bugs.launchpad.net/gnome-control-center/+bug/403840
Comment 2 komputes 2009-07-24 03:21:00 UTC
Created attachment 139128 [details]
Monitor Identification
Comment 3 Federico Mena Quintero 2009-12-11 20:42:59 UTC
We can probably hide the identifier windows if the main gnome-display-properties window loses the focus.  I'll take a patch for this.

Currently, gnome-desktop/libgnome-desktop/gnome-rr-labeler.c's gnome_rr_labeler_hide() just destroys the windows.  You'll want to modify it to hide them instead.  Then, add a gnome_rr_labeler_show() that shows the windows again.

Then you'll need to patch gnome-display-properties to call those functions as appropriate when it loses/gains the focus.  For bonus points, hide the windows a short time after the dialog loses the focus, not immediately.
Comment 4 Federico Mena Quintero 2009-12-11 20:45:00 UTC
*** Bug 590318 has been marked as a duplicate of this bug. ***
Comment 5 Bastien Nocera 2010-12-07 16:11:20 UTC
Let's start with the gnome-desktop changes.
Comment 6 Federico Mena Quintero 2010-12-07 18:22:15 UTC
Actually, gnome-desktop may not need changes - you can simply destroy the windows and re-create a GnomeRRLabeler when you need it again.

If you want to do something more exotic like fade out the labels, then gnome-desktop *will* need changes.
Comment 7 Robert Ancell 2011-03-17 04:15:10 UTC
Created attachment 183605 [details] [review]
Add ability to show and hide the monitor labels (to make the display properties capplet able to hide them when it loses focus)
Comment 8 Robert Ancell 2011-03-17 04:17:03 UTC
Created attachment 183606 [details] [review]
Only show monitor labels when display applet has focus
Comment 9 Robert Ancell 2011-03-17 04:19:12 UTC
I made these patches for GNOME 2.32 and confirmed they worked, I haven't been able to compile the GNOME Control Center 3 one, please check that!

The patches simply hide the monitor labels when the dialog window loses focus.  There is the side-effect that using combo boxes and dragging the window causes them to hide, but this seems minor.  I couldn't work out if GTK/X can tell me "doe this window or any of it's subwindows have focus".
Comment 10 Robert Ancell 2011-03-17 04:28:11 UTC
The patch also changes the default behaviour of the monitor labels to not be shown.  I don't know if any other code is using this object, my guess was there wasn't so it wouldn't be a problem.
Comment 11 Robert Ancell 2011-03-17 23:52:02 UTC
gnome-control-center bug is bug 625476
Comment 12 Federico Mena Quintero 2011-03-22 22:57:15 UTC
Review of attachment 183605 [details] [review]:

These look pretty good!  Please go ahead and push them.
Comment 13 Federico Mena Quintero 2011-03-22 22:59:02 UTC
Review of attachment 183606 [details] [review]:

Looks good.  Any reason to use connect_after() rather than plain connect()?
Comment 14 Federico Mena Quintero 2011-03-22 23:18:47 UTC
Errrr, one minor detail.  You removed the call to create_label_windows() from setup_from_config() - as you said, this makes the labels hidden by default.  Please keep them shown by default; the tray icon from gnome-settings-daemon assumes this.

(The alternative is to make the g-s-d plugin show the labels explicitly, but if you create a labeler is because you want the labels to be shown - so I'd rather keep them shown by default.  It's OK to hide/show them on focus events.)
Comment 15 Vincent Untz 2011-03-22 23:23:31 UTC
We're in hard code freeze, so please wait until we branch for 3.0.
Comment 16 Vincent Untz 2011-03-22 23:24:59 UTC
And actually, please also write API doc for the new API.

It's a shame that the libgnome-desktop API is so badly documented, and we should stop adding API without doc.
Comment 17 André Klapper 2011-04-15 09:11:22 UTC
Patches have status "accepted-commit_after_freeze". Assuming this refers to 3.0 Hardcode Freeze, can this get a commit now?
Comment 18 Vincent Untz 2011-04-20 14:41:46 UTC
It's new API. This can go in 3.1/3.2, not 3.0.x.
Comment 19 Robert Ancell 2011-05-02 06:00:33 UTC
Comment on attachment 183605 [details] [review]
Add ability to show and hide the monitor labels (to make the display properties capplet able to hide them when it loses focus)

Pushed to master (3.1.x)
Comment 20 Robert Ancell 2011-05-02 06:00:37 UTC
Comment on attachment 183606 [details] [review]
Only show monitor labels when display applet has focus

Pushed to master (3.1.x)
Comment 21 Bastien Nocera 2011-05-03 13:36:02 UTC
In the future, don't commit without one of the gnome-control-center maintainers checking, and don't commit unstable changes when we're not even branched.

I should add that nowhere here do I see any reviews by usability or design folks.
Comment 22 Robert Ancell 2011-05-04 14:34:03 UTC
Sorry, didn't notice you hadn't branched and didn't check who marked the patch "accepted, commit now".  Reassigned this bug to gnome-control-center.
Comment 23 Bastien Nocera 2011-05-07 16:54:04 UTC
Fixed gnome-desktop as well. Next time, check whether the modules have actually been branched.
Comment 24 Bastien Nocera 2011-05-07 17:06:07 UTC
Attachment 183606 [details] pushed as 3d91e4b - Only show monitor labels when display applet has focus
Comment 25 Bastien Nocera 2011-08-25 18:42:02 UTC
FWIW, the gnome-control-center code didn't actually work.