[gnome-disk-utility/udisks2-port] GduVolumeGrid: Fix size calculation



commit e7a070adf4aee5e18cb6b5afd44e368de473fa91
Author: David Zeuthen <davidz redhat com>
Date:   Thu Nov 24 10:04:41 2011 -0500

    GduVolumeGrid: Fix size calculation
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/palimpsest/gduvolumegrid.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/palimpsest/gduvolumegrid.c b/src/palimpsest/gduvolumegrid.c
index dc66470..86eb5c1 100644
--- a/src/palimpsest/gduvolumegrid.c
+++ b/src/palimpsest/gduvolumegrid.c
@@ -1042,17 +1042,10 @@ gdu_volume_grid_draw (GtkWidget *widget,
 {
   GduVolumeGrid *grid = GDU_VOLUME_GRID (widget);
   GtkAllocation allocation;
-  gdouble width;
-  gdouble height;
   gboolean need_animation_timeout;
 
   gtk_widget_get_allocation (widget, &allocation);
-  width = allocation.width;
-  height = allocation.height;
-
-  recompute_size (grid,
-                  width - 1,
-                  height -1);
+  recompute_size (grid, allocation.width, allocation.height);
 
   need_animation_timeout = render_slice (grid, cr, grid->elements);
 



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