#include "psppire-var-sheet-header.h"
-#include "efficient-sheet/jmd-axis-model.h"
-#include "efficient-sheet/jmd-datum.h"
+#include "efficient-sheet/src/ssw-axis-model.h"
+#include "efficient-sheet/src/ssw-datum.h"
+enum {CHANGED,
+ n_SIGNALS};
+
+static guint signals [n_SIGNALS];
static guint
gni (GListModel *list)
static GType
git (GListModel *list)
{
- return JMD_TYPE_DATUM;
+ return SSW_TYPE_DATUM;
}
static gpointer
gi (GListModel *list, guint position)
{
- JmdDatum *gd = JMD_DATUM (g_object_new (JMD_TYPE_DATUM, NULL));
+ SswDatum *gd = SSW_DATUM (g_object_new (SSW_TYPE_DATUM, NULL));
switch (position)
{
break;
default:
// g_assert_not_reached ();
- g_print ("Bug: Request for item %d", position);
+ g_print ("Bug: Request for item %d\n", position);
break;
}
static void
psppire_var_sheet_header_class_init (PsppireVarSheetHeaderClass *dc)
{
+ GObjectClass *object_class = G_OBJECT_CLASS (dc);
+
+ /* This signal is never emitted. It is just to satisfy the interface. */
+ signals [CHANGED] =
+ g_signal_new ("changed",
+ G_TYPE_FROM_CLASS (object_class),
+ G_SIGNAL_RUN_FIRST,
+ 0,
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE,
+ 0);
}