projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added crosstabs dialog
[pspp]
/
lib
/
gtksheet
/
gsheet-row-iface.c
diff --git
a/lib/gtksheet/gsheet-row-iface.c
b/lib/gtksheet/gsheet-row-iface.c
index ba5d338367031ed5ec3708685dbee6d4cec02f58..44afc0aaec9541a284e7c8332374d63a1aca48f9 100644
(file)
--- a/
lib/gtksheet/gsheet-row-iface.c
+++ b/
lib/gtksheet/gsheet-row-iface.c
@@
-105,7
+105,7
@@
g_sheet_row_base_init (gpointer g_class)
void
g_sheet_row_set_height (GSheetRow *row_geo,
void
g_sheet_row_set_height (GSheetRow *row_geo,
- g
int
row, gint size, gpointer data)
+ g
long
row, gint size, gpointer data)
{
g_return_if_fail (G_IS_SHEET_ROW (row_geo));
{
g_return_if_fail (G_IS_SHEET_ROW (row_geo));
@@
-117,7
+117,7
@@
g_sheet_row_set_height (GSheetRow *row_geo,
gint
g_sheet_row_get_height (const GSheetRow *row_geo,
gint
g_sheet_row_get_height (const GSheetRow *row_geo,
- g
int
row, gpointer data)
+ g
long
row, gpointer data)
{
g_return_val_if_fail (G_IS_SHEET_ROW (row_geo), -1);
{
g_return_val_if_fail (G_IS_SHEET_ROW (row_geo), -1);
@@
-131,7
+131,7
@@
g_sheet_row_get_height (const GSheetRow *row_geo,
gboolean
g_sheet_row_get_visibility(const GSheetRow *row_geo,
gboolean
g_sheet_row_get_visibility(const GSheetRow *row_geo,
- g
int
row, gpointer data)
+ g
long
row, gpointer data)
{
g_return_val_if_fail (G_IS_SHEET_ROW (row_geo), FALSE);
{
g_return_val_if_fail (G_IS_SHEET_ROW (row_geo), FALSE);
@@
-144,7
+144,7
@@
g_sheet_row_get_visibility(const GSheetRow *row_geo,
gboolean
g_sheet_row_get_sensitivity(const GSheetRow *row_geo,
gboolean
g_sheet_row_get_sensitivity(const GSheetRow *row_geo,
- g
int
row, gpointer data)
+ g
long
row, gpointer data)
{
g_return_val_if_fail (G_IS_SHEET_ROW (row_geo), FALSE);
{
g_return_val_if_fail (G_IS_SHEET_ROW (row_geo), FALSE);
@@
-158,7
+158,7
@@
g_sheet_row_get_sensitivity(const GSheetRow *row_geo,
GtkSheetButton *
g_sheet_row_get_button(const GSheetRow *row_geo,
GtkSheetButton *
g_sheet_row_get_button(const GSheetRow *row_geo,
- g
int
row, gpointer data)
+ g
long
row, gpointer data)
{
GtkSheetButton *button = gtk_sheet_button_new();
{
GtkSheetButton *button = gtk_sheet_button_new();
@@
-172,9
+172,22
@@
g_sheet_row_get_button(const GSheetRow *row_geo,
return button;
}
return button;
}
+inline gchar *
+g_sheet_row_get_subtitle (const GSheetRow *row_geo, glong row)
+{
+ g_return_val_if_fail (G_IS_SHEET_ROW (row_geo), NULL);
-gint
-g_sheet_row_get_row_count(const GSheetRow *geo, gpointer data)
+ if ( ! G_SHEET_ROW_GET_IFACE (row_geo)->get_subtitle )
+ return NULL;
+
+ return (G_SHEET_ROW_GET_IFACE (row_geo)->get_subtitle) (row_geo, row);
+}
+
+
+
+
+glong
+g_sheet_row_get_row_count (const GSheetRow *geo, gpointer data)
{
g_return_val_if_fail (G_IS_SHEET_ROW (geo), -1);
{
g_return_val_if_fail (G_IS_SHEET_ROW (geo), -1);
@@
-197,7
+210,7
@@
g_sheet_row_get_row_count(const GSheetRow *geo, gpointer data)
*/
gint
*/
gint
-g_sheet_row_start_pixel(const GSheetRow *geo, g
int
row, gpointer data)
+g_sheet_row_start_pixel(const GSheetRow *geo, g
long
row, gpointer data)
{
gint i;
gint start_pixel = 0;
{
gint i;
gint start_pixel = 0;
@@
-220,8
+233,8
@@
g_sheet_row_start_pixel(const GSheetRow *geo, gint row, gpointer data)
}
}
-g
int
-g_sheet_row_pixel_to_row(const GSheetRow *geo, gint pixel,
+g
long
+g_sheet_row_pixel_to_row
(const GSheetRow *geo, gint pixel,
gpointer data)
{
gint i, cy;
gpointer data)
{
gint i, cy;
@@
-250,8
+263,8
@@
g_sheet_row_pixel_to_row(const GSheetRow *geo, gint pixel,
void
void
-g_sheet_row_rows_deleted(GSheetRow *geo,
- g
int first, gint
n_rows)
+g_sheet_row_rows_deleted
(GSheetRow *geo,
+ g
long first, glong
n_rows)
{
g_return_if_fail (G_IS_SHEET_ROW (geo));
{
g_return_if_fail (G_IS_SHEET_ROW (geo));