If a PsppireDialog contains a GtkDrawingArea, potentially any change
to the drawn surface could indicate a change in state. Therefore,
we need to notify interested parties of this change.
dialog);
}
-
/* It's unfortunate that GTK+ doesn't have a generic
"user-modified-state-changed" signal. Instead, we have to try and
predict what widgets and signals are likely to exist in our dialogs. */
+ if (GTK_IS_DRAWING_AREA (w))
+ {
+ g_signal_connect_swapped (w, "draw",
+ G_CALLBACK (psppire_dialog_notify_change),
+ dialog);
+ }
+
if (GTK_IS_TOGGLE_BUTTON (w))
{
g_signal_connect_swapped (w, "toggled",