[gnome-panel/gtk3] Fix panel_background_update_has_alpha() when background is solid color
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/gtk3] Fix panel_background_update_has_alpha() when background is solid color
- Date: Mon, 17 Jan 2011 16:45:05 +0000 (UTC)
commit 42eaac42594a23f3ec11d15e7a403eda99d4a98d
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Mon Jan 17 17:40:35 2011 +0100
Fix panel_background_update_has_alpha() when background is solid color
gnome-panel/panel-background.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/panel-background.c b/gnome-panel/panel-background.c
index 0c70216..75c9d34 100644
--- a/gnome-panel/panel-background.c
+++ b/gnome-panel/panel-background.c
@@ -527,8 +527,7 @@ panel_background_update_has_alpha (PanelBackground *background)
gboolean has_alpha = FALSE;
if (background->type == PANEL_BACK_COLOR)
- has_alpha = (background->color.alpha != 0xffff);
-
+ has_alpha = (background->color.alpha < 1.);
else if (background->type == PANEL_BACK_IMAGE &&
background->loaded_image)
has_alpha = gdk_pixbuf_get_has_alpha (background->loaded_image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]