[gnome-panel] panel-applet-frame: Fix background of handles for transparent panels



commit ee03f07f10b3eeafad61abedc357603d35b7be6a
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sat Mar 12 17:16:58 2011 +0100

    panel-applet-frame: Fix background of handles for transparent panels

 gnome-panel/panel-applet-frame.c |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/gnome-panel/panel-applet-frame.c b/gnome-panel/panel-applet-frame.c
index acbdc43..cfa8786 100644
--- a/gnome-panel/panel-applet-frame.c
+++ b/gnome-panel/panel-applet-frame.c
@@ -109,11 +109,16 @@ panel_applet_frame_draw (GtkWidget *widget,
 	gtk_style_context_set_state (context, gtk_widget_get_state_flags (widget));
 
 	cairo_save (cr);
-        gtk_render_handle (context, cr,
-			   frame->priv->handle_rect.x,
-			   frame->priv->handle_rect.y,
-			   frame->priv->handle_rect.width,
-			   frame->priv->handle_rect.height);
+	cairo_rectangle (cr,
+			 frame->priv->handle_rect.x,
+			 frame->priv->handle_rect.y,
+			 frame->priv->handle_rect.width,
+			 frame->priv->handle_rect.height);
+	cairo_clip (cr);
+	gtk_render_handle (context, cr,
+			   0, 0,
+			   gtk_widget_get_allocated_width (widget),
+			   gtk_widget_get_allocated_height (widget));
 	cairo_restore (cr);
 
 	gtk_style_context_restore (context);



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