static gint
g_sheet_hetero_column_get_sensitivity(const GSheetColumn *geom, gint u)
{
- GSheetHeteroColumn *hg = G_SHEET_HETERO_COLUMN(geom);
-
return TRUE;
}
static gint
g_sheet_hetero_column_get_visibility(const GSheetColumn *geom, gint u)
{
- GSheetHeteroColumn *hg = G_SHEET_HETERO_COLUMN(geom);
-
return TRUE;
}
g_sheet_hetero_column_get_button_label(const GSheetColumn *geom, gint u)
{
GSheetHeteroColumn *hg = G_SHEET_HETERO_COLUMN(geom);
-
+
return hg->col[u].button.label;
}
static GtkJustification
g_sheet_hetero_column_get_justification(const GSheetColumn *geom, gint u)
{
- GSheetHeteroColumn *hg = G_SHEET_HETERO_COLUMN(geom);
-
return GTK_JUSTIFY_FILL;
}
static const gchar *
g_sheet_uniform_row_get_button_label(const GSheetRow *geom, gint u)
{
- GSheetUniformRow *ug = G_SHEET_UNIFORM_ROW(geom);
-
static gchar *label;
g_free(label);
label = g_strdup_printf("%d", u);
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: pspp-dev@gnu.org\n"
-"POT-Creation-Date: 2006-05-07 09:52+0800\n"
+"POT-Creation-Date: 2006-05-07 12:07+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Cannot add value labels from source file to long string variable %s."
msgstr ""
-#: src/language/dictionary/apply-dictionary.c:135
+#: src/language/dictionary/apply-dictionary.c:104
#, c-format
msgid ""
"Cannot apply missing values from source file to long string variable %s."
msgstr ""
-#: src/language/dictionary/apply-dictionary.c:155
+#: src/language/dictionary/apply-dictionary.c:124
msgid "No matching variables found between the source and target files."
msgstr ""
/* Variables. */
struct hsh_table *var_hash;
- struct variable *const *svars;
+ struct variable **svars;
/* File's special constants. */
flt64 sysmis;
if ( ! r->svars )
{
- r->svars = (struct variable *const *) hsh_data(r->var_hash);
+ r->svars = (struct variable **) hsh_data(r->var_hash);
sort(r->svars, hsh_count(r->var_hash),
sizeof(*r->svars), compare_var_index, 0);
}
stack size is needed (actually O(1) in this case)! */
void
-sort (const void *array, size_t count, size_t size,
+sort (void *array, size_t count, size_t size,
algo_compare_func *compare, void *aux)
{
char *const first = array;
/* Sorts ARRAY, which contains COUNT elements of SIZE bytes each,
using COMPARE for comparisons. AUX is passed to each
comparison as auxiliary data. */
-void sort (const void *array, size_t count, size_t size,
+void sort (void *array, size_t count, size_t size,
algo_compare_func *compare, void *aux);
/* Tests whether ARRAY, which contains COUNT elements of SIZE
static void psppire_data_store_sheet_column_init (GSheetColumnIface *iface);
static void psppire_data_store_finalize (GObject *object);
-static const gchar *const psppire_data_store_get_string(GSheetModel *sheet_model, gint row, gint column);
+static const gchar *psppire_data_store_get_string(GSheetModel *sheet_model, gint row, gint column);
static gboolean psppire_data_store_set_string(GSheetModel *model,
const gchar *text, gint row, gint column);
}
-static const gchar *const
+static const gchar *
psppire_data_store_get_string(GSheetModel *model, gint row, gint column)
{
#include "psppire-variable.h"
#include "psppire-var-store.h"
#include "var-sheet.h"
+#include "helper.h"
#include <data/dictionary.h>
#include <data/variable.h>
static void psppire_var_store_sheet_model_init (GSheetModelIface *iface);
static void psppire_var_store_finalize (GObject *object);
-static const gchar *const psppire_var_store_get_string(GSheetModel *sheet_model, gint row, gint column);
+static const gchar *psppire_var_store_get_string(GSheetModel *sheet_model, gint row, gint column);
static gboolean psppire_var_store_clear(GSheetModel *model, gint row, gint col);
const gchar *text, gint row, gint column);
-static const gchar *const text_for_column(const struct PsppireVariable *pv, gint c);
+static const gchar *text_for_column(const struct PsppireVariable *pv, gint c);
static GObjectClass *parent_class = NULL;
(* parent_class->finalize) (object);
}
-static const gchar *const
+static const gchar *
psppire_var_store_get_string(GSheetModel *model, gint row, gint column)
{
const gchar *s ;
s = text_for_column(pv, column);
- return s;
+ return g_locale_to_utf8(s, -1, 0,0,0);
}
#define MAX_CELL_TEXT_LEN 255
-static const gchar *const
+static const gchar *
text_for_column(const struct PsppireVariable *pv, gint c)
{
static gchar buf[MAX_CELL_TEXT_LEN];
#include "var-type-dialog.h"
#include "psppire-variable.h"
+#include "helper.h"
#include <data/variable.h>
#include <data/settings.h>