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 383066 - fancy dancy media keys window
fancy dancy media keys window
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] settings-daemon
git master
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-06 17:48 UTC by William Jon McCann
Modified: 2007-01-25 23:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (31.09 KB, patch)
2006-12-06 17:49 UTC, William Jon McCann
none Details | Review
screenshot - changing volume (465.92 KB, image/png)
2006-12-06 18:18 UTC, William Jon McCann
  Details
screenshot - ejecting a disc (757.44 KB, image/png)
2006-12-06 18:19 UTC, William Jon McCann
  Details
patch (34.58 KB, patch)
2006-12-07 16:58 UTC, William Jon McCann
committed Details | Review

Description William Jon McCann 2006-12-06 17:48:01 UTC
Been meaning to do this for a while.  Here is a fancy dancy media keys window that will take advantage of compositing if it is available.
Comment 1 William Jon McCann 2006-12-06 17:49:58 UTC
Created attachment 77837 [details] [review]
patch

OK to commit this?
Comment 2 Bastien Nocera 2006-12-06 18:11:33 UTC
Before I review the code, do you have screenshots?
Comment 3 William Jon McCann 2006-12-06 18:18:22 UTC
Created attachment 77839 [details]
screenshot - changing volume
Comment 4 William Jon McCann 2006-12-06 18:19:25 UTC
Created attachment 77840 [details]
screenshot - ejecting a disc
Comment 5 Bastien Nocera 2006-12-06 18:33:53 UTC
Wouldn't it be better to keep the old dialogues when compositing is off (ie. when gdk_screen_is_composited returns FALSE)?
Comment 6 William Jon McCann 2006-12-06 18:52:20 UTC
I had something like that in a early version of the patch.  However, it added complexity with basically no upside.  It also made it a bit more difficult to handle the composited-changed case.  Its just an entirely different (parallel) way of doing things.

However, it is possible and I'll add it if that is required.
Comment 7 William Jon McCann 2006-12-07 16:58:44 UTC
Created attachment 77905 [details] [review]
patch

This uses the glade widgets when not composited.  Look OK?
Comment 8 Bastien Nocera 2006-12-07 17:21:57 UTC
Looks good to me.
Comment 9 Rodrigo Moya 2006-12-07 17:49:39 UTC
Looks ok to me also, please commit and close the bug
Comment 10 William Jon McCann 2006-12-07 17:56:54 UTC
Thanks for the really quick review and approvals guys!  Feel free to copy me on bugs related to this in the future.

2006-12-07  William Jon McCann  <mccann@jhu.edu>

	* gnome-settings-daemon/Makefile.am:
	* gnome-settings-daemon/actions/Makefile.am:
	* gnome-settings-daemon/actions/acme.glade:
	* gnome-settings-daemon/actions/gnome-speakernotes-muted.png:
	* gnome-settings-daemon/actions/gnome-speakernotes.png:
	* gnome-settings-daemon/gnome-settings-multimedia-keys.c:
	(execute), (dialog_init), (unhookup_keysym), (update_kbd_cb),
	(init_kbd), (dialog_show), (do_eject_action), (do_sound_action),
	(gnome_settings_multimedia_keys_load):
	* gnome-settings-daemon/gsd-media-keys-window.c: (hide_timeout),
	(remove_hide_timeout), (add_hide_timeout), (update_window),
	(volume_controls_set_visible), (window_set_icon_name),
	(window_set_icon_file), (action_changed), (volume_level_changed),
	(volume_muted_changed), (gsd_media_keys_window_set_action),
	(gsd_media_keys_window_set_volume_muted),
	(gsd_media_keys_window_set_volume_level), (curved_rectangle),
	(draw_action_eject), (draw_waves), (draw_speaker),
	(draw_volume_boxes), (draw_action_volume), (draw_action),
	(on_expose_event), (gsd_media_keys_window_real_show),
	(gsd_media_keys_window_real_hide),
	(gsd_media_keys_window_class_init), (initialize_alpha_mode),
	(gsd_media_keys_window_init), (gsd_media_keys_window_finalize),
	(gsd_media_keys_window_new):
	* gnome-settings-daemon/gsd-media-keys-window.h:
	Add a new media keys window that takes advantage of
	compositing when available.  Fixes #383066
Comment 11 Michael Monreal 2006-12-27 10:57:07 UTC
This is very nice but I get anoying "jumping" of the media key window after the first press, meaning I press once, window appears, i press again and the window jumps some pixels to the upper left. After that it doesn't move again for that session. Can this be fixed? I'm using latest compiz (from git) bzw, donno if this could be the cause?
Comment 12 Martin Szulecki 2007-01-25 15:14:19 UTC
I think the gnome-power-manager brightness control display will not be consistent with this anymore?

Suggestions?

- Open up bug in g-p-m and extend it's window drawing with this functionality?
OR
- Add brightness controls here and let g-p-m somehow call it?
Comment 13 Bastien Nocera 2007-01-25 23:45:20 UTC
(In reply to comment #12)
> I think the gnome-power-manager brightness control display will not be
> consistent with this anymore?
> 
> Suggestions?
> 
> - Open up bug in g-p-m and extend it's window drawing with this functionality?
> OR
> - Add brightness controls here and let g-p-m somehow call it?

I filed bug 400844 about it


(In reply to comment #11)
> This is very nice but I get anoying "jumping" of the media key window after the
> first press, meaning I press once, window appears, i press again and the window
> jumps some pixels to the upper left. After that it doesn't move again for that
> session. Can this be fixed? I'm using latest compiz (from git) bzw, donno if
> this could be the cause?

Please open a new bug about that.