[gnome-panel/gtk3] Fix transparency for panels with solid color background



commit f86c5c14a3c2e14f0fcce5fb609e1b899e41fc30
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Mon Jan 17 19:04:03 2011 +0100

    Fix transparency for panels with solid color background

 gnome-panel/panel-background.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gnome-panel/panel-background.c b/gnome-panel/panel-background.c
index e5c2244..e79e2fa 100644
--- a/gnome-panel/panel-background.c
+++ b/gnome-panel/panel-background.c
@@ -232,15 +232,12 @@ composite_color_onto_desktop (PanelBackground *background)
                 return NULL;
         }
 
-        // FIXMEchpe is this correct way to composite here?
-
         cr = cairo_create (surface);
-        gdk_cairo_set_source_pixbuf (cr, background->desktop,
-                                     -background->region.x, -background->region.y);
+        gdk_cairo_set_source_pixbuf (cr, background->desktop, 0, 0);
         cairo_paint (cr);
 
         gdk_cairo_set_source_rgba (cr, &background->color);
-        cairo_fill (cr);
+        cairo_paint (cr);
 
         cairo_destroy (cr);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]