/**
* PsppireSheet::select-row
* @sheet: the sheet widget that emitted the signal
- * @row: the newly selected row index
+ * @row: the newly selected row index, or -1 if no row is selected.
*
* A row has been selected.
*/
/**
* PsppireSheet::select - column
* @sheet: the sheet widget that emitted the signal
- * @column: the newly selected column index
+ * @column: the newly selected column index, or -1 if no column is selected.
*
* A column has been selected.
*/
area.y++;
gdk_window_invalidate_rect (sheet->sheet_window, &area, FALSE);
+
+ g_signal_emit (sheet, sheet_signals [SELECT_ROW], 0, row);
}
void
area.y++;
gdk_window_invalidate_rect (sheet->sheet_window, &area, FALSE);
+
+ g_signal_emit (sheet, sheet_signals [SELECT_COLUMN], 0, column);
}
rectangle_from_range (sheet, &sheet->range, &area);
area.x++;
area.y++;
- gdk_window_invalidate_rect (sheet->sheet_window, &area, FALSE);
+ gdk_window_invalidate_rect (sheet->sheet_window, &area, FALSE);
+
+ g_signal_emit (sheet, sheet_signals [SELECT_COLUMN], 0, -1);
+ g_signal_emit (sheet, sheet_signals [SELECT_ROW], 0, -1);
}
void