UndoManager: use g_signal_connect_object()