[gnome-settings-daemon] media-keys: Use correct argument to GtkStyle functions
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Use correct argument to GtkStyle functions
- Date: Sat, 12 Jan 2013 21:11:59 +0000 (UTC)
commit 45a88f2afc16364e60b0f929d6a8e5e45812681e
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Jan 11 12:25:35 2013 -0500
media-keys: Use correct argument to GtkStyle functions
Use GTK_STATE_FLAG_NORMAL, not GTK_STATE_NORMAL
The GtkStyleContext API takes a GtkStateFlags.
https://bugzilla.gnome.org/show_bug.cgi?id=652321
plugins/media-keys/gsd-osd-window.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/media-keys/gsd-osd-window.c b/plugins/media-keys/gsd-osd-window.c
index 0908f38..90ac5e7 100644
--- a/plugins/media-keys/gsd-osd-window.c
+++ b/plugins/media-keys/gsd-osd-window.c
@@ -486,7 +486,7 @@ draw_volume_boxes (GsdOsdDrawContext *ctx,
/* bar background */
gtk_style_context_save (ctx->style);
gtk_style_context_add_class (ctx->style, GTK_STYLE_CLASS_TROUGH);
- gtk_style_context_get_background_color (ctx->style, GTK_STATE_NORMAL, &acolor);
+ gtk_style_context_get_background_color (ctx->style, GTK_STATE_FLAG_NORMAL, &acolor);
gsd_osd_window_draw_rounded_rectangle (cr, 1.0,
volume_box->x, volume_box->y, volume_box->height / 6,
@@ -501,7 +501,7 @@ draw_volume_boxes (GsdOsdDrawContext *ctx,
return;
gtk_style_context_save (ctx->style);
gtk_style_context_add_class (ctx->style, GTK_STYLE_CLASS_PROGRESSBAR);
- gtk_style_context_get_background_color (ctx->style, GTK_STATE_NORMAL, &acolor);
+ gtk_style_context_get_background_color (ctx->style, GTK_STATE_FLAG_NORMAL, &acolor);
gsd_osd_window_draw_rounded_rectangle (cr, 1.0,
volume_box->x, volume_box->y, volume_box->height / 6,
@@ -687,7 +687,7 @@ gsd_osd_window_draw (GsdOsdDrawContext *ctx,
corner_radius = ctx->size / 10;
gsd_osd_window_draw_rounded_rectangle (cr, 1.0, 0.0, 0.0, corner_radius, ctx->size - 1, ctx->size - 1);
- gtk_style_context_get_background_color (ctx->style, GTK_STATE_NORMAL, &acolor);
+ gtk_style_context_get_background_color (ctx->style, GTK_STATE_FLAG_NORMAL, &acolor);
gdk_cairo_set_source_rgba (cr, &acolor);
cairo_fill (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]