From 1c63efa12785efdb1376089082a273f67ccabb11 Mon Sep 17 00:00:00 2001 From: John Darrington <john@darrington.wattle.id.au> Date: Sat, 12 Mar 2016 18:44:46 +0100 Subject: [PATCH] PsppireVarSheetHeader: Add the "changed" signal. This signal is never emitted, but critical runtime warnings appear if it doesn't exist. --- src/ui/gui/psppire-var-sheet-header.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ui/gui/psppire-var-sheet-header.c b/src/ui/gui/psppire-var-sheet-header.c index 8930826aaa..cd2121fd8b 100644 --- a/src/ui/gui/psppire-var-sheet-header.c +++ b/src/ui/gui/psppire-var-sheet-header.c @@ -24,6 +24,10 @@ #include "efficient-sheet/jmd-axis-model.h" #include "efficient-sheet/jmd-datum.h" +enum {CHANGED, + n_SIGNALS}; + +static guint signals [n_SIGNALS]; static guint gni (GListModel *list) @@ -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); } -- 2.30.2