[gnome-settings-daemon] media-keys: Add padding below icons in OSD
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Add padding below icons in OSD
- Date: Tue, 18 Jan 2011 17:19:34 +0000 (UTC)
commit 1bd16cbc3468e9362fcf5e877c2feb8ecb105a63
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 18 17:18:12 2011 +0000
media-keys: Add padding below icons in OSD
So that the icons don't actually touch the meter.
https://bugzilla.gnome.org/show_bug.cgi?id=639772
plugins/media-keys/gsd-media-keys-window.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-window.c b/plugins/media-keys/gsd-media-keys-window.c
index 71a6d54..744bdcc 100644
--- a/plugins/media-keys/gsd-media-keys-window.c
+++ b/plugins/media-keys/gsd-media-keys-window.c
@@ -467,9 +467,9 @@ draw_action_volume (GsdMediaKeysWindow *window,
volume_box_height = round (window_height * 0.05);
icon_box_x0 = (window_width - icon_box_width) / 2;
- icon_box_y0 = (window_height - icon_box_height - volume_box_height) / 2;
+ icon_box_y0 = (window_height - icon_box_height - volume_box_height) / 2 - volume_box_height;
volume_box_x0 = round (icon_box_x0);
- volume_box_y0 = round (icon_box_height + icon_box_y0);
+ volume_box_y0 = round (icon_box_height + icon_box_y0) + volume_box_height;
#if 0
g_message ("icon box: w=%f h=%f _x0=%f _y0=%f",
@@ -604,9 +604,9 @@ draw_action_custom (GsdMediaKeysWindow *window,
bright_box_height = round (window_height * 0.05);
icon_box_x0 = (window_width - icon_box_width) / 2;
- icon_box_y0 = (window_height - icon_box_height - bright_box_height) / 2;
+ icon_box_y0 = (window_height - icon_box_height - bright_box_height) / 2 - bright_box_height;
bright_box_x0 = round (icon_box_x0);
- bright_box_y0 = round (icon_box_height + icon_box_y0);
+ bright_box_y0 = round (icon_box_height + icon_box_y0) + bright_box_height;
#if 0
g_message ("icon box: w=%f h=%f _x0=%f _y0=%f",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]