projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use strict and all warnings. Simplify parsing. Add "@c End:" line to
[pspp]
/
lib
/
gtksheet
/
gsheet-uniform-row.c
diff --git
a/lib/gtksheet/gsheet-uniform-row.c
b/lib/gtksheet/gsheet-uniform-row.c
index 83791adaff055ae29024118d03f87a4547fcda9e..755ce2585288404914ec88b302bf123dcca6aa74 100644
(file)
--- a/
lib/gtksheet/gsheet-uniform-row.c
+++ b/
lib/gtksheet/gsheet-uniform-row.c
@@
-96,7
+96,7
@@
g_sheet_uniform_row_new (gint height, gint n_rows)
}
static gint
}
static gint
-g_sheet_uniform_row_get_height
(const GSheetRow *geom, gint
u, gpointer data)
+g_sheet_uniform_row_get_height
(const GSheetRow *geom, glong
u, gpointer data)
{
GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geom);
{
GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geom);
@@
-104,7
+104,8
@@
g_sheet_uniform_row_get_height(const GSheetRow *geom, gint u, gpointer data)
}
static gboolean
}
static gboolean
-g_sheet_uniform_row_get_sensitivity(const GSheetRow *geom, gint u, gpointer data)
+g_sheet_uniform_row_get_sensitivity (const GSheetRow *geom, glong u,
+ gpointer data)
{
GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geom);
{
GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geom);
@@
-113,26
+114,27
@@
g_sheet_uniform_row_get_sensitivity(const GSheetRow *geom, gint u, gpointer data
static gboolean
static gboolean
-g_sheet_uniform_row_get_visibility(const GSheetRow *geom, gint u, gpointer data)
+g_sheet_uniform_row_get_visibility (const GSheetRow *geom, glong u,
+ gpointer data)
{
{
- GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geom);
+ GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW
(geom);
return ug->is_visible;
}
static gchar *
return ug->is_visible;
}
static gchar *
-g_sheet_uniform_row_get_button_label(const GSheetRow *geom, g
int
u, gpointer data)
+g_sheet_uniform_row_get_button_label(const GSheetRow *geom, g
long
u, gpointer data)
{
{
- gchar *label = g_strdup_printf("%d", u);
+ gchar *label = g_strdup_printf("%
l
d", u);
return label;
}
return label;
}
-static g
int
-g_sheet_uniform_row_get_row_count(const GSheetRow *geom, gpointer data)
+static g
long
+g_sheet_uniform_row_get_row_count
(const GSheetRow *geom, gpointer data)
{
GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geom);
{
GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geom);
@@
-159,21
+161,21
@@
g_sheet_uniform_row_init (GSheetUniformRow *o)
}
static void
}
static void
-g_sheet_uniform_row_finalize (GObject
*object)
+g_sheet_uniform_row_finalize (GObject *object)
{
}
static guint
{
}
static guint
-g_sheet_uniform_row_top_ypixel
(const GSheetRow *geo, gint
row, gpointer data)
+g_sheet_uniform_row_top_ypixel
(const GSheetRow *geo, glong
row, gpointer data)
{
GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geo);
return row * ug->height;
}
{
GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geo);
return row * ug->height;
}
-static g
int
-g_sheet_uniform_row_pixel_to_row(const GSheetRow *geo, guint pixel,
+static g
long
+g_sheet_uniform_row_pixel_to_row
(const GSheetRow *geo, guint pixel,
gpointer data)
{
GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geo);
gpointer data)
{
GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geo);