X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgtksheet%2Fgsheet-uniform-column.c;h=6822fa3606b684cf00a371c53853317c383a9cba;hb=92f198d13c9214c0d75b936f0ea0dc2684ea914b;hp=be7a37f9085670e44e6a0d8e3d9c50c8640ca41d;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp diff --git a/lib/gtksheet/gsheet-uniform-column.c b/lib/gtksheet/gsheet-uniform-column.c index be7a37f908..6822fa3606 100644 --- a/lib/gtksheet/gsheet-uniform-column.c +++ b/lib/gtksheet/gsheet-uniform-column.c @@ -96,7 +96,7 @@ g_sheet_uniform_column_new (gint width, gint n_columns) } static gint -g_sheet_uniform_column_get_width(const GSheetColumn *geom, gint u) +g_sheet_uniform_column_get_width(const GSheetColumn *geom, gint u, gpointer data) { GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom); @@ -104,7 +104,7 @@ g_sheet_uniform_column_get_width(const GSheetColumn *geom, gint u) } static gint -g_sheet_uniform_column_get_sensitivity(const GSheetColumn *geom, gint u) +g_sheet_uniform_column_get_sensitivity(const GSheetColumn *geom, gint u, gpointer data) { GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom); @@ -113,7 +113,7 @@ g_sheet_uniform_column_get_sensitivity(const GSheetColumn *geom, gint u) static gint -g_sheet_uniform_column_get_visibility(const GSheetColumn *geom, gint u) +g_sheet_uniform_column_get_visibility(const GSheetColumn *geom, gint u, gpointer data) { GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom); @@ -121,34 +121,25 @@ g_sheet_uniform_column_get_visibility(const GSheetColumn *geom, gint u) } -static const gchar * -g_sheet_uniform_column_get_button_label(const GSheetColumn *geom, gint u) +static gchar * +g_sheet_uniform_column_get_button_label(const GSheetColumn *geom, gint u, gpointer data) { - GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom); - - static gchar *label; - - g_free(label); - label = g_strdup_printf("%d", u); + gchar *label = g_strdup_printf("%d", u); return label; } static GtkJustification -g_sheet_uniform_column_get_justification(const GSheetColumn *geom, gint u) +g_sheet_uniform_column_get_justification(const GSheetColumn *geom, gint u, gpointer data) { - /* - GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom); - */ - return GTK_JUSTIFY_FILL; } static gint -g_sheet_uniform_column_get_column_count(const GSheetColumn *geom) +g_sheet_uniform_column_get_column_count(const GSheetColumn *geom, gpointer data) { GSheetUniformColumn *ug = G_SHEET_UNIFORM_COLUMN(geom);