[pdfmod] [CairoCell] Set radius to 3, and blank drawing area



commit 3a34ab5769dbb50c014df755da15ff7f65804377
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon Sep 13 12:35:05 2010 -0500

    [CairoCell] Set radius to 3, and blank drawing area

 src/PdfMod/Gui/CairoCell.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/PdfMod/Gui/CairoCell.cs b/src/PdfMod/Gui/CairoCell.cs
index 946696d..2ec5e31 100644
--- a/src/PdfMod/Gui/CairoCell.cs
+++ b/src/PdfMod/Gui/CairoCell.cs
@@ -38,6 +38,7 @@ namespace PdfMod.Gui
         {
             if (Theme == null) {
                 Theme = Hyena.Gui.Theming.ThemeEngine.CreateTheme (widget);
+                Theme.Context.Radius = 3;
             }
 
             Context cr = Gdk.CairoHelper.Create (window);
@@ -47,6 +48,11 @@ namespace PdfMod.Gui
             cr.Clip ();
             cr.Translate (cell_area.X, cell_area.Y);
 
+            // Clear any existing drawing
+            cr.Rectangle (0, 0, cell_area.Width, cell_area.Height);
+            cr.Color = Theme.ViewFill;
+            cr.Fill ();
+
             if (state == CellRendererState.Selected) {
                 Theme.DrawRowSelection (cr, 0, 0, cell_area.Width, cell_area.Height, true);
             } else if (state == CellRendererState.Focused) {



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