Remove unused expose_area parameters from pspp_sheet_view_column functions
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 28 May 2013 06:26:31 +0000 (08:26 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 29 May 2013 04:58:03 +0000 (06:58 +0200)
src/ui/gui/pspp-sheet-private.h
src/ui/gui/pspp-sheet-view-column.c
src/ui/gui/pspp-sheet-view.c

index d887f720b03ff0f36ae4e31d2a63c355fefdf717..1b11506184c82593f3cb1b85ffeb1843e813d392 100644 (file)
@@ -409,7 +409,6 @@ void                  _pspp_sheet_view_column_cell_render      (PsppSheetViewColumn  *tree_col
                                                            cairo_t *cr,
                                                          const GdkRectangle *background_area,
                                                          const GdkRectangle *cell_area,
-                                                         const GdkRectangle *expose_area,
                                                          guint               flags);
 void             _pspp_sheet_view_column_get_focus_area   (PsppSheetViewColumn  *tree_column,
                                                          const GdkRectangle *background_area,
@@ -423,7 +422,6 @@ void                  _pspp_sheet_view_column_cell_draw_focus  (PsppSheetViewColumn  *tree_col
                                                            cairo_t *cr,
                                                          const GdkRectangle *background_area,
                                                          const GdkRectangle *cell_area,
-                                                         const GdkRectangle *expose_area,
                                                          guint               flags);
 void             _pspp_sheet_view_column_cell_set_dirty         (PsppSheetViewColumn  *tree_column);
 void              _pspp_sheet_view_column_get_neighbor_sizes (PsppSheetViewColumn *column,
index bff3d330c1181994cadee94d9d3d70b21eaf0f56..5e5804e812a87926e98d6b951d091081de002b82 100644 (file)
@@ -3127,7 +3127,6 @@ pspp_sheet_view_column_cell_process_action (PsppSheetViewColumn  *tree_column,
                                          const GdkRectangle *cell_area,
                                          guint               flags,
                                          gint                action,
-                                         const GdkRectangle *expose_area,     /* RENDER */
                                          GdkRectangle       *focus_rectangle, /* FOCUS  */
                                          GtkCellEditable   **editable_widget, /* EVENT  */
                                          GdkEvent           *event,           /* EVENT  */
@@ -3136,7 +3135,6 @@ pspp_sheet_view_column_cell_process_action (PsppSheetViewColumn  *tree_column,
   GList *list;
   GdkRectangle real_cell_area;
   GdkRectangle real_background_area;
-  GdkRectangle real_expose_area = *cell_area;
   gint depth = 0;
   gint expand_cell_count = 0;
   gint full_requested_width = 0;
@@ -3592,7 +3590,6 @@ pspp_sheet_view_column_cell_process_action (PsppSheetViewColumn  *tree_column,
  * @window: a #GdkDrawable to draw to
  * @background_area: entire cell area (including tree expanders and maybe padding on the sides)
  * @cell_area: area normally rendered by a cell renderer
- * @expose_area: area that actually needs updating
  * @flags: flags that affect rendering
  * 
  * Renders the cell contained by #tree_column. This is used primarily by the
@@ -3603,13 +3600,11 @@ _pspp_sheet_view_column_cell_render (PsppSheetViewColumn  *tree_column,
                                     cairo_t *cr,
                                   const GdkRectangle *background_area,
                                   const GdkRectangle *cell_area,
-                                  const GdkRectangle *expose_area,
                                   guint               flags)
 {
   g_return_if_fail (PSPP_IS_SHEET_VIEW_COLUMN (tree_column));
   g_return_if_fail (background_area != NULL);
   g_return_if_fail (cell_area != NULL);
-  g_return_if_fail (expose_area != NULL);
 
   pspp_sheet_view_column_cell_process_action (tree_column,
                                              cr,
@@ -3617,7 +3612,6 @@ _pspp_sheet_view_column_cell_render (PsppSheetViewColumn  *tree_column,
                                            cell_area,
                                            flags,
                                            CELL_ACTION_RENDER,
-                                           expose_area,
                                            NULL, NULL, NULL, NULL);
 }
 
@@ -3638,7 +3632,7 @@ _pspp_sheet_view_column_cell_event (PsppSheetViewColumn  *tree_column,
                                                   cell_area,
                                                   flags,
                                                   CELL_ACTION_EVENT,
-                                                  NULL, NULL,
+                                                  NULL,
                                                   editable_widget,
                                                   event,
                                                   path_string);
@@ -3656,7 +3650,6 @@ _pspp_sheet_view_column_get_focus_area (PsppSheetViewColumn  *tree_column,
                                            cell_area,
                                            0,
                                            CELL_ACTION_FOCUS,
-                                           NULL,
                                            focus_area,
                                            NULL, NULL, NULL);
 }
@@ -3915,7 +3908,6 @@ _pspp_sheet_view_column_cell_draw_focus (PsppSheetViewColumn  *tree_column,
                                         cairo_t *cr,
                                       const GdkRectangle *background_area,
                                       const GdkRectangle *cell_area,
-                                      const GdkRectangle *expose_area,
                                       guint               flags)
 {
   gint focus_line_width;
@@ -3950,7 +3942,6 @@ _pspp_sheet_view_column_cell_draw_focus (PsppSheetViewColumn  *tree_column,
                                                cell_area,
                                                flags,
                                                CELL_ACTION_FOCUS,
-                                               expose_area,
                                                &focus_rectangle,
                                                NULL, NULL, NULL);
 
index 6fce3a4930f8e7841c071d351db89ec0dc49a42e..3723464a7898ef7d08acf6a8da4e67176ceb9697 100644 (file)
@@ -4243,7 +4243,6 @@ pspp_sheet_view_bin_expose (GtkWidget      *widget,
                                                cr,
                                                &background_area,
                                                &cell_area,
-                                               &Zarea,
                                                flags);
 
           if (node == cursor && has_special_cell &&
@@ -4256,7 +4255,6 @@ pspp_sheet_view_bin_expose (GtkWidget      *widget,
                                                       cr,
                                                     &background_area,
                                                     &cell_area,
-                                                    &Zarea,
                                                     flags);
            }