From: John Darrington Date: Sat, 12 Mar 2016 17:44:46 +0000 (+0100) Subject: PsppireVarSheetHeader: Add the "changed" signal. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c63efa12785efdb1376089082a273f67ccabb11;p=pspp PsppireVarSheetHeader: Add the "changed" signal. This signal is never emitted, but critical runtime warnings appear if it doesn't exist. --- 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); }