Update identifiers to reflect new identity of upstream package
[pspp] / src / ui / gui / psppire-var-sheet-header.c
index 5032c3897914e0704c84c5ece38fca01dde960d8..e7770dedb5a8912801ec41838150f0f327642e48 100644 (file)
 
 #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)
@@ -34,13 +38,13 @@ 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)
     {
@@ -79,7 +83,7 @@ gi (GListModel *list, guint 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;
     }
 
@@ -110,5 +114,17 @@ psppire_var_sheet_header_init (PsppireVarSheetHeader *d)
 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);
 }