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 363665 - Use compositing to display the typing break window
Use compositing to display the typing break window
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] Typing break
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Richard Hult
Control-Center Maintainers
: 385073 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-10-20 13:18 UTC by Bastien Nocera
Modified: 2007-02-03 08:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (23.94 KB, patch)
2006-12-13 01:17 UTC, William Jon McCann
committed Details | Review

Description Bastien Nocera 2006-10-20 13:18:12 UTC
Would probably be nicer than taking a picture of the whole desktop.
Comment 1 Richard Hult 2006-12-12 15:03:44 UTC
*** Bug 385073 has been marked as a duplicate of this bug. ***
Comment 2 Richard Hult 2006-12-12 15:33:15 UTC
I agree, it would be awesome :)
Comment 3 William Jon McCann 2006-12-13 01:17:33 UTC
Created attachment 78251 [details] [review]
patch

This uses cairo to dim the background and:

- Fixes two small bugs in gsd-media-keys-window.c
- Converts to G_DEFINE_TYPE
- Uses g_type_class_add_private
- Grabs the keyboard from a map_event callback to avoid a race
- Moves the stop sign image next to "Take a break!" label for two reasons
   a) it makes more sense there I think
   b) the variable font size of the clock label made the image move around
- Removes some spurious trailing whitespace

The composited case works well but I haven't gotten a chance to test the non-composited case yet.
Comment 4 Richard Hult 2006-12-19 18:09:52 UTC
Why the change of Priv -> Private?
Comment 5 William Jon McCann 2006-12-19 19:26:00 UTC
- consistency with the rest of the module and GNOME
- most people prefer not to abbreviate words if possible
- to make copy/paste reuse easier
Comment 6 William Jon McCann 2006-12-19 19:29:48 UTC
and so that the DRW_BREAK_WINDOW_GET_PRIVATE macro usage has more symmetry, ie:

DrwBreakWindowPrivate *priv = DRW_BREAK_WINDOW_GET_PRIVATE (window);
Comment 7 Richard Hult 2006-12-19 20:11:16 UTC
Alright, I would prefer not to change those things, but since I don't have much time myself for this module, I'm just thankful that someone has, so I won't argue about that :)

I've tried the patch in the non-composite case and it works nicely.

I don't really like the move of the label, and I haven't seen the problem ever that you described. When does it happen? And is there another way to fix it (for example by tweaking the alignment or the width of the label)?

As a side point, usually it's a good idea to not include whitespace changes in patches, it makes reviewing harder. It's also often better to limit the patch to what the bug report is for. I have no say in the media keys part for example.
Comment 8 Alberto Ruiz 2007-01-25 16:11:48 UTC
I've tested the patch with AIGXL and beryl and it works fine for me.
Comment 9 Richard Hult 2007-01-31 18:29:26 UTC
There is a UI freeze in effect now, not sure if that matters for this? If someone wants to ask for permission to break it and commit this, I'm all for it. I just tested it without composite support again and it works nicely.
Comment 10 John Stowers 2007-01-31 20:35:57 UTC
I think go ahead and ask for the break. Now that it is using transparency it would be good if it matched the new composited volume widget.
Comment 11 Bastien Nocera 2007-02-01 00:32:57 UTC
(In reply to comment #9)
> There is a UI freeze in effect now, not sure if that matters for this? If
> someone wants to ask for permission to break it and commit this, I'm all for
> it. I just tested it without composite support again and it works nicely.

It's not a UI change, it just sucks less at showing you a (fake) transparent window :)
Comment 12 Richard Hult 2007-02-01 07:30:08 UTC
Well, it moves around the labels and icon as well ;) 
Comment 13 William Jon McCann 2007-02-03 00:33:43 UTC
Hi, I'm sorry that I never got a chance to respond to Richard's comments properly.  This came together quickly before the holidays...  also sorry if I came across as abrupt.

I think this is probably in good enough shape to go in.  I'm going to commit this based on the following:

 * Richard seems fine with it
 * according to http://live.gnome.org/ReleasePlanning/Freezes we are only in the "slushy ui freeze" and not a hard freeze
 * this window doesn't seem to be documented with a screenshot
 * the ui changes are pretty insignificant
 * it can be considered a bug fix
 * and it isn't clear that any of us have time to work on this later :)
Comment 14 Richard Hult 2007-02-03 08:13:10 UTC
Thanks! :)