diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-05 16:23:24 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-05 16:23:24 -0600 |
commit | 4e9083f7c597a5a6c9bd5e3e4ac2c40000f78351 (patch) | |
tree | aaaec7a482a02cc29819b9dc229ac59bcb94bffe | |
parent | 1f9baf0fecb0ed170344d3d0d37d0d1542b6d87d (diff) | |
parent | 3fc82a0f5983b37d517098700928c9cbf6086e5a (diff) | |
download | ayatana-indicator-sound-4e9083f7c597a5a6c9bd5e3e4ac2c40000f78351.tar.gz ayatana-indicator-sound-4e9083f7c597a5a6c9bd5e3e4ac2c40000f78351.tar.bz2 ayatana-indicator-sound-4e9083f7c597a5a6c9bd5e3e4ac2c40000f78351.zip |
merge lp:~charlesk/indicator-sound/lp-944250 to fix the buffer overrun error reported by Coverity in bug #944250
-rw-r--r-- | src/metadata-widget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c index 597c12c..08528d1 100644 --- a/src/metadata-widget.c +++ b/src/metadata-widget.c @@ -528,7 +528,7 @@ draw_album_border(GtkWidget *metadata, bg_normal.g = style->bg[0].green/65535.0; bg_normal.b = style->bg[0].blue/65535.0; - gint state = selected ? 5 : 0; + const gint state = selected ? GTK_STATE_SELECTED : GTK_STATE_NORMAL; fg_normal.r = style->fg[state].red/65535.0; fg_normal.g = style->fg[state].green/65535.0; |