pspp_sheet_view_bin_expose : remove GdkEventExpose parameter and replace with cairo_t
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 28 May 2013 08:39:50 +0000 (10:39 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 29 May 2013 04:58:16 +0000 (06:58 +0200)
src/ui/gui/pspp-sheet-view.c

index d474566788be2ebed8b010fee8ab970c5ec83649..fa01b1860f14cb0fa20889e3d3e6863904257f29 100644 (file)
@@ -3819,7 +3819,7 @@ pspp_sheet_view_draw_vertical_grid_lines (PsppSheetView    *tree_view,
  */
 static gboolean
 pspp_sheet_view_bin_expose (GtkWidget      *widget,
-                           GdkEventExpose *event)
+                           cairo_t *cr)
 {
   PsppSheetView *tree_view = PSPP_SHEET_VIEW (widget);
   GtkTreePath *path;
@@ -3850,7 +3850,6 @@ pspp_sheet_view_bin_expose (GtkWidget      *widget,
   gboolean row_ending_details;
   gboolean draw_vgrid_lines, draw_hgrid_lines;
   gint min_y, max_y;
-  cairo_t *cr = gdk_cairo_create (event->window);
 
   cairo_t *bwcr = gdk_cairo_create (tree_view->priv->bin_window);
   GdkRectangle Zarea;
@@ -3859,7 +3858,6 @@ pspp_sheet_view_bin_expose (GtkWidget      *widget,
 
   Zarea.x =      0;
   Zarea.y =      0;
-  Zarea.width =  gdk_window_get_width (event->window);
   Zarea.height = allocation.height;
 
   rtl = (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL);
@@ -4462,7 +4460,7 @@ pspp_sheet_view_expose (GtkWidget      *widget,
          PsppSheetViewChild *child = tmp_list->data;
          tmp_list = tmp_list->next;
 
-         gtk_container_propagate_expose (GTK_CONTAINER (tree_view), child->widget, event);
+         gtk_container_propagate_draw (GTK_CONTAINER (tree_view), child->widget, cr);
        }
 
       return retval;