[gnome-settings-daemon] media-keys: Remove progress bar borders
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Remove progress bar borders
- Date: Fri, 1 Jul 2011 14:25:34 +0000 (UTC)
commit 303170d16c3c2fee8033f9701b4799d1c37d7da6
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 1 14:20:29 2011 +0100
media-keys: Remove progress bar borders
https://bugzilla.gnome.org/show_bug.cgi?id=652321
plugins/media-keys/gsd-media-keys-window.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-window.c b/plugins/media-keys/gsd-media-keys-window.c
index cbb3efa..0536433 100644
--- a/plugins/media-keys/gsd-media-keys-window.c
+++ b/plugins/media-keys/gsd-media-keys-window.c
@@ -374,8 +374,6 @@ draw_volume_boxes (GsdMediaKeysWindow *window,
GtkStyleContext *context;
GdkRGBA acolor;
- _x0 += 0.5;
- _y0 += 0.5;
height = round (height) - 1;
width = round (width) - 1;
x1 = round ((width - 1) * percentage);
@@ -390,15 +388,6 @@ draw_volume_boxes (GsdMediaKeysWindow *window,
gdk_cairo_set_source_rgba (cr, &acolor);
cairo_fill_preserve (cr);
- /* bar border */
- gtk_style_context_get_background_color (context, GTK_STATE_NORMAL, &acolor);
- gsd_osd_window_color_shade (&acolor, LIGHTNESS_MULT);
- gsd_osd_window_color_reverse (&acolor);
- acolor.alpha = GSD_OSD_WINDOW_FG_ALPHA / 2;
- gdk_cairo_set_source_rgba (cr, &acolor);
- cairo_set_line_width (cr, 1);
- cairo_stroke (cr);
-
/* bar progress */
if (percentage < 0.01)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]